Commit graph

96 commits

Author SHA1 Message Date
alisdair sullivan
488132aecb basic strings now FAST in decoder, escapes and bad utf nyi 2013-02-20 23:57:06 -08:00
alisdair sullivan
0392be060d add tests for strings that need unescaping in decoding 2013-02-19 00:26:53 -08:00
alisdair sullivan
4d60fa2a08 add special number tests for floats and integers that have different representation in erlang and json 2013-02-13 21:54:09 -08:00
alisdair sullivan
9e01e3a704 reduce test cases to saner set 2013-02-13 19:13:50 -08:00
alisdair sullivan
5c96222cbf add additional comment tests 2013-02-12 12:06:45 -08:00
alisdair sullivan
ff6a83598b replace all incidences of opts with config 2013-02-12 11:54:42 -08:00
alisdair sullivan
2f47fdd642 simplify exportation of tests, add strings to test suite 2013-02-11 19:06:44 -08:00
alisdair sullivan
eaf19cde9c extend tests to decoder, encoder and parser 2013-02-11 18:22:45 -08:00
alisdair sullivan
eaba8c7b0f remove redundant code in decoder 2013-01-22 23:44:15 -08:00
alisdair sullivan
83a219ba80 more specific guarding in string fsm 2012-12-28 06:43:35 -08:00
alisdair sullivan
1982665507 extend decoder tests to be more comprehensive 2012-12-28 06:35:26 -08:00
alisdair sullivan
844ee2407f previously, unambiguously incomplete input was sometimes treated as ambiguous. the 'incomplete_input' flag is no longer needed to parse this input correctly 2012-11-21 23:35:15 -08:00
alisdair sullivan
6ff94d8e5f strip trailing whitespace 2012-11-21 23:04:14 -08:00
alisdair sullivan
d081bd2539 change all stray badjson to badarg 2012-05-24 23:07:03 -07:00
Bob Ippolito
6ff1471550 handle escaped solidus correctly per JSON spec 2012-04-26 13:04:17 -07:00
alisdair sullivan
ded212c397 minor refactoring of jsx_decoder in prep for post_decode hook 2012-04-06 08:35:40 -07:00
alisdair sullivan
e69ac5f371 detect utf8 bom and ignore if present 2012-04-04 20:46:41 -07:00
alisdair sullivan
19402fbee4 two new tests for comments and one (tiny) fix for trailing comments 2012-04-01 17:53:59 -07:00
alisdair sullivan
7b5f56a4be minor refactoring in jsx_decoder 2012-04-01 17:27:55 -07:00
alisdair sullivan
3e56b7ff3d more explicit handling of comments 2012-04-01 17:16:22 -07:00
alisdair sullivan
3bc2c68ea3 fix the tenses and forms of option flags 2012-03-31 21:58:18 -07:00
alisdair sullivan
357e3e0aeb add naked single quoted json escape test 2012-03-31 21:19:26 -07:00
alisdair sullivan
1c9da676b7 remove decode/1 from jsx_decoder test suite 2012-03-31 20:39:15 -07:00
alisdair sullivan
068af5621a add tests for ignore_bad_escapes 2012-03-31 20:38:51 -07:00
alisdair sullivan
66cb67148f whitespace changes in jsx_decoder.erl 2012-03-31 17:51:20 -07:00
alisdair sullivan
60bc46e2d4 add test suite for json_escape in decoder 2012-03-31 17:45:23 -07:00
alisdair sullivan
ae2aae1ebf style and whitespace 2012-03-31 17:45:23 -07:00
alisdair sullivan
ad3e870615 more fixes for json_escape 2012-03-30 23:17:05 -07:00
alisdair sullivan
6f6a660177 fix escaping problems in format/x 2012-03-29 21:43:55 -07:00
alisdair sullivan
63535b27d7 check more extended codepoints 2012-03-29 06:25:49 -07:00
alisdair sullivan
5f6d7c1f01 upon further consideration, ignoring bad \uuXXXX escape sequences could be dangerous, remove test 2012-03-29 00:18:53 -07:00
alisdair sullivan
867199539c add (failing) tests for bad escape sequences 2012-03-29 00:13:08 -07:00
alisdair sullivan
9d2448669e whitespace 2012-03-28 23:46:18 -07:00
alisdair sullivan
dc6a026e94 add tests for bad utf sequences, fix failures 2012-03-28 23:31:07 -07:00
alisdair sullivan
7e243bafd1 remove tests for malformed 5 and 6 byte sequences 2012-03-28 21:23:35 -07:00
alisdair sullivan
9bdbf7969b noncharacters work with incompletes now 2012-03-28 19:50:57 -07:00
alisdair sullivan
cf6dbd6480 properly guard noncharacters 2012-03-28 19:34:49 -07:00
alisdair sullivan
7a1bcc4992 bad utf sequences were being replaced with u+fffd per byte, they are now correctly replaced with just a single u+fffd codepoint 2012-03-27 23:18:06 -07:00
alisdair sullivan
addb1e172d fix for failing tests on R14BXX 2012-03-27 16:56:12 -07:00
alisdair sullivan
42d6ef2c21 refactor of encoded codepoints with looser string restrictions 2012-03-27 14:44:02 -07:00
alisdair sullivan
672fe04c37 additional noncharacter handling for R14BXX 2012-03-27 13:41:23 -07:00
alisdair sullivan
f1c4a85df1 loosen restrictions on allowed codepoints in strings 2012-03-26 19:39:28 -07:00
alisdair sullivan
41002bd10f comment explaining weird string functions 2012-03-26 18:52:06 -07:00
alisdair sullivan
bc588ceb7b first step to better perf 2012-03-25 18:48:24 -07:00
alisdair sullivan
978e75887a corrected handling of malformed utf8 sequences 2012-03-21 05:38:08 -07:00
alisdair sullivan
e36858d1ba apply escape_forward_slash option to decoding as well as encoding 2012-03-21 05:36:39 -07:00
alisdair sullivan
e3c883457f allow c and c++ style comments anywhere whitespace is legal 2012-03-21 05:36:39 -07:00
alisdair sullivan
97a7d295f1 the option single_quotes in functions dealing with json inputs now allows json that uses single quotes to deliminate keys and strings to be processed, note that this changes the escaping rules slightly 2012-03-21 05:35:16 -07:00
alisdair sullivan
1d5b9e7410 the option single_quotes in functions dealing with json inputs now allows json that uses single quotes to deliminate keys and strings to be processed, note that this changes the escaping rules slightly 2012-03-21 05:26:19 -07:00
alisdair sullivan
5155c96ac7 make tests runnable from basic rebar.config for users who have meck on path already 2012-03-06 19:59:49 -08:00