diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/script/expansion.et | 15 | ||||
-rw-r--r-- | test/script/parser.et | 7 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/script/expansion.et b/test/script/expansion.et new file mode 100644 index 0000000..86a81dc --- /dev/null +++ b/test/script/expansion.et @@ -0,0 +1,15 @@ +module expansion + +asset expansion: + path: ../asset/expansion.et + +test VariableExpansion: + spawn as p + with p: + send "load ${expansion.path}" + expect /load-done/ + send "run VariableExpansion" + for str in [ "1", "1.3", "abc", "abc" ]: + expect /child-stdout p $str/ + expect /match p $str/ + expect /run-done/ diff --git a/test/script/parser.et b/test/script/parser.et new file mode 100644 index 0000000..ee99989 --- /dev/null +++ b/test/script/parser.et @@ -0,0 +1,7 @@ +module parser + +test ModuleNotFound: + spawn as p + with p: + send "load non-existing-file.et" + expect /load-failed file-not-found .*/ |