mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-21 18:10:42 -04:00
DEV: Add integration test for the mod.pkg func
This commit is contained in:
parent
b9ebffa6a3
commit
74f6cb89e5
13
integration_tests/pkg_func_module.ucg
Normal file
13
integration_tests/pkg_func_module.ucg
Normal file
@ -0,0 +1,13 @@
|
||||
let t = import "std/testing.ucg";
|
||||
|
||||
let test_simple_mod = module {
|
||||
arg = "value",
|
||||
} => {
|
||||
let value = mod.arg;
|
||||
};
|
||||
|
||||
let pkg_func_mod = module {
|
||||
arg = "value",
|
||||
} => {
|
||||
let value = mod.pkg().test_simple_mod{arg=mod.arg}.value;
|
||||
};
|
8
integration_tests/pkg_func_module_test.ucg
Normal file
8
integration_tests/pkg_func_module_test.ucg
Normal file
@ -0,0 +1,8 @@
|
||||
let t = import "std/testing.ucg";
|
||||
|
||||
let mod_under_test = import "./pkg_func_module.ucg";
|
||||
|
||||
assert t.equal{
|
||||
left = mod_under_test.pkg_func_mod{arg="foo"}.value,
|
||||
right = "foo",
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user