DEV: Add integration test for the mod.pkg func

This commit is contained in:
Jeremy Wall 2021-08-22 21:10:08 -04:00
parent b9ebffa6a3
commit 74f6cb89e5
2 changed files with 21 additions and 0 deletions

View 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;
};

View 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",
};