Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use Perl builtin UTF-8 support, not Text::Iconv | Mark Pulford | 2011-05-16 | 1 | -7/+13 | |
| | | | | Remove Perl dependency on Text::Iconv to improve portability. | |||||
* | Move all benchmark code into bench.lua | Mark Pulford | 2011-05-16 | 2 | -39/+34 | |
| | | | | | Move benchmark() into bench.lua since it not used elsewhere. Replace posix.gettimeofday() with socket.gettime() to improve portability. | |||||
* | Remove invalid newlines from JSON examples | Mark Pulford | 2011-05-16 | 2 | -8/+4 | |
| | ||||||
* | Add command line encode/decode utilities | Mark Pulford | 2011-05-16 | 2 | -0/+37 | |
| | ||||||
* | Warn that a failed NaN test may not be an error | Mark Pulford | 2011-05-16 | 2 | -3/+9 | |
| | | | | | | | Sprintf returns "-nan" rather than "nan" on some platforms, which causes the test script to incorrectly flag a failure. Also allow test functions without "==> Config" output. | |||||
* | Remove trailing whitespace1.0.1 | Mark Pulford | 2011-05-10 | 2 | -4/+4 | |
| | ||||||
* | run_test_group(): Change helper functions to local | Mark Pulford | 2011-05-10 | 1 | -2/+2 | |
| | ||||||
* | Add runtime option for persistent encode buffer | Mark Pulford | 2011-05-10 | 1 | -1/+1 | |
| | ||||||
* | Suspend the garbage collector during benchmarks | Mark Pulford | 2011-05-10 | 1 | -1/+2 | |
| | | | | Suspending GC appears to make the benchmark results more consistent. | |||||
* | Remove whitespace from generated JSON output | Mark Pulford | 2011-05-10 | 1 | -5/+5 | |
| | | | | | | | Remove excess whitespace to reduce output size and increase encode performance. Suggested by: Zhang "agentzh" Yichun <agentzh@gmail.com> | |||||
* | Add extra encoding/nesting tests | Mark Pulford | 2011-05-10 | 2 | -6/+43 | |
| | | | | | | - Use pcall() to call test config functions. - Test encoding with refuse_invalid_numbers() options. - Test encoding invalid types. | |||||
* | Add support for perl installs outside of /usr/bin | Mark Pulford | 2011-05-10 | 1 | -1/+2 | |
| | | | | | Change "perl -w" to "use warnings" for compatibility with systems that put all #! args into argv[1]. | |||||
* | Add test for excessive nesting during encode | Mark Pulford | 2011-05-08 | 2 | -6/+16 | |
| | ||||||
* | Add NaN/Inf encoding tests, rearrange test order | Mark Pulford | 2011-05-08 | 1 | -71/+74 | |
| | ||||||
* | Generate error when attempting to decode UTF-16/32 | Mark Pulford | 2011-05-08 | 1 | -0/+4 | |
| | ||||||
* | Add UTF-16 surrogate pair decode support | Mark Pulford | 2011-05-08 | 4 | -2/+93 | |
| | | | | | | | | - Add tests for UTF-16 decoding and failures - Add getutf8.pl to assist with UTF-16 decode testing - Re-add test_decode_cycle() which was accidentally removed earlier - Rename bytestring.dat to octets-escaped.dat | |||||
* | Test octect encode/decode separately | Mark Pulford | 2011-05-08 | 2 | -24/+9 | |
| | ||||||
* | Convert tests to automatically verify output | Mark Pulford | 2011-05-08 | 1 | -106/+107 | |
| | ||||||
* | Implement data driven test framework | Mark Pulford | 2011-05-08 | 3 | -29/+158 | |
| | | | | | | | | - 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() | |||||
* | Add test to compare objects after decode/encode | Mark Pulford | 2011-05-07 | 2 | -3/+40 | |
| | ||||||
* | Document permission received to use examples | Mark Pulford | 2011-05-04 | 1 | -0/+2 | |
| | | | | | | | | | | | Douglas Crockford <douglas@crockford.com> has given permission for these examples to be used. Message-ID: <4DC01FB7.8090001@crockford.com> Date: Tue, 03 May 2011 08:31:03 -0700 From: Douglas Crockford To: Mark Pulford Subject: Re: JSON examples | |||||
* | Add basic JSON tests and benchmark | Mark Pulford | 2011-05-03 | 11 | -0/+465 | |