summaryrefslogtreecommitdiff
path: root/tests/test.lua
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-05-08 02:23:57 +0930
committerMark Pulford <mark@kyne.com.au>2011-05-08 02:23:57 +0930
commit0d56e3bebecb7008f0baa7eaccf3dc9b2a39e360 (patch)
tree8c15c63f01afa79115f2b66b922bb27779df9b90 /tests/test.lua
parent3d014d14bcf3dce3e5dbb9c193d689e46d333798 (diff)
downloadlua-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-xtests/test.lua4
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
3require "common" 7require "common"
4local json = require "cjson" 8local json = require "cjson"
5 9