diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-05-13 11:08:27 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-05-13 11:08:27 +0100 |
commit | b3cb265c28906c21007adcae3ba28ea345fc7def (patch) | |
tree | 7a653bfdf8807aa78101371c41d82887fa9c7351 | |
parent | 2b519094313c6f771dc484f9e65169b216c469f6 (diff) | |
download | lace-b3cb265c28906c21007adcae3ba28ea345fc7def.tar.gz |
Ensure defined values
-rw-r--r-- | test/test-lace.builtin.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-lace.builtin.lua b/test/test-lace.builtin.lua index 48b8d45..dbff31d 100644 --- a/test/test-lace.builtin.lua +++ b/test/test-lace.builtin.lua @@ -547,7 +547,7 @@ end function suite.compile_anyof_two_args() - local compctx = {_lace = {}} + local compctx = {_lace = {defined={foo=true,bar=true}}} local cmdtab, msg = builtin.commands.define(compctx, "define", "foo", "anyof", "foo", "bar") assert(type(cmdtab) == "table", "Successful compilations should return tables") assert(type(cmdtab.fn) == "function", "With functions") @@ -566,7 +566,7 @@ function suite.compile_anyof_two_args() end function suite.compile_allof_two_args() - local compctx = {_lace = {}} + local compctx = {_lace = {defined={foo=true,bar=true}}} local cmdtab, msg = builtin.commands.define(compctx, "define", "foo", "allof", "foo", "bar") assert(type(cmdtab) == "table", "Successful compilations should return tables") assert(type(cmdtab.fn) == "function", "With functions") @@ -609,7 +609,7 @@ function suite.run_anyof_two_args() end function suite.run_anyof_two_args() - local compctx = {_lace = {}} + local compctx = {_lace = {defined={foo=true,bar=true}}} local cmdtab, msg = builtin.commands.define(compctx, "define", "jeff", "allof", "foo", "bar") assert(type(cmdtab) == "table", "Successful compilations should return tables") local ectx = { |