diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-05-08 02:23:57 +0930 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-05-08 02:23:57 +0930 |
commit | 0d56e3bebecb7008f0baa7eaccf3dc9b2a39e360 (patch) | |
tree | 8c15c63f01afa79115f2b66b922bb27779df9b90 /tests/test.lua | |
parent | 3d014d14bcf3dce3e5dbb9c193d689e46d333798 (diff) | |
download | lua-cjson-0d56e3bebecb7008f0baa7eaccf3dc9b2a39e360.tar.gz lua-cjson-0d56e3bebecb7008f0baa7eaccf3dc9b2a39e360.tar.bz2 lua-cjson-0d56e3bebecb7008f0baa7eaccf3dc9b2a39e360.zip |
Implement data driven test framework
- Add run_test(): Test a function and verify its output
- Add run_test_group(): Execute a test batch
- Add serialise_value(): Serialise a Lua value into the Lua syntax
- Add file_save() helper function
- Add NaN comparison support to compare_values()
Diffstat (limited to 'tests/test.lua')
-rwxr-xr-x | tests/test.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test.lua b/tests/test.lua index 3c8c404..51f29c4 100755 --- a/tests/test.lua +++ b/tests/test.lua | |||
@@ -1,5 +1,9 @@ | |||
1 | #!/usr/bin/env lua | 1 | #!/usr/bin/env lua |
2 | 2 | ||
3 | -- CJSON tests | ||
4 | -- | ||
5 | -- Mark Pulford <mark@kyne.com.au> | ||
6 | |||
3 | require "common" | 7 | require "common" |
4 | local json = require "cjson" | 8 | local json = require "cjson" |
5 | 9 | ||