Commit Graph

16 Commits

Author SHA1 Message Date
Qi Xiao
8a425b82a5 eval: Make Test and TestWithSetup accept variadic test cases. 2018-05-22 01:08:11 +01:00
Qi Xiao
0b683c5617 eval: Remove TestMain.
Setups are now done in individual tests.
2018-05-22 00:54:29 +01:00
Qi Xiao
457f12bfe8 eval: Improve test framework API. 2018-05-19 17:43:01 +02:00
Qi Xiao
2f834da5c0 eval: Fix and simplify ns tests. 2018-03-16 18:17:18 +00:00
fehnomenal
5579b82515 Expand has-key functionality (#635)
Fixes #631
2018-03-14 22:46:55 +00:00
Qi Xiao
326ef4c09e eval: Convert all tests to use new-style Test builder. 2018-03-03 01:08:09 -05:00
Qi Xiao
d0dab8b9f9 eval: Rename functions in testutils.go. 2018-03-03 00:06:03 -05:00
Qi Xiao
cc861528de eval: The "ns" builtin now takes a map argument. 2018-02-02 22:10:10 -08:00
Qi Xiao
2e30264a6d eval: Strings are no longer callable.
This fixes #552.
2018-01-01 16:04:20 +00:00
Qi Xiao
73be867432 eval: Make RunTests more general. 2017-12-23 03:16:58 +01:00
Qi Xiao
07fa612759 eval: NewEvaler now requires no arg.
All the initialization steps that were related to the args are not
optional, and can be done separately by calling the relevant methods of
the Evaler.
2017-12-23 00:07:12 +00:00
Qi Xiao
9f73206278 eval: Call RunTest from individual test files. 2017-12-21 20:49:14 +00:00
Qi Xiao
e70fe7809b eval: Expose test case utilities. 2017-12-21 20:32:14 +00:00
Qi Xiao
16b27161b8 eval: More tests against builtins. 2017-12-17 05:42:30 +00:00
Qi Xiao
ba5b88084e eval: Add two shorthands for testing predicates. 2017-12-17 05:26:37 +00:00
Qi Xiao
cbe45b815d Break builtin_fn.go into many files. 2017-12-17 05:21:41 +00:00