Commit graph

98 commits

Author SHA1 Message Date
alisdair sullivan
89d3cbbd36 rename jsx_utils jsx_config 2013-03-06 01:37:08 -08:00
alisdair sullivan
c4405e45a8 move clean_string to an include file and inline it in parser and encoder, move tests to jsx_test.hrl 2013-03-06 01:28:39 -08:00
alisdair sullivan
267977bf6e replace <<16#ffff/utf8>> with <<239, 191, 191>> to allow certain tests to run on R14x 2013-03-05 16:36:49 -08:00
alisdair sullivan
df04f091f7 change returned config from record to list in error and incomplete handler 2013-03-04 23:48:34 -08:00
alisdair sullivan
d796dffa05 trap and process string encoding errors properly 2013-03-04 21:51:43 -08:00
alisdair sullivan
da9bf969e2 extend error_handler to encoding 2013-03-04 21:21:45 -08:00
alisdair sullivan
2e5bb4fd3b merge new_tests branch 2013-02-24 03:07:57 -08:00
alisdair sullivan
35020643e7 revert encoder to prior version 2013-02-24 02:57:35 -08:00
alisdair sullivan
ef566d8cd3 remove cases from clean_string 2013-02-24 02:42:29 -08:00
alisdair sullivan
ceb7ce6586 shiny and new string cleaning for encoder and parser 2013-02-19 22:51:54 -08:00
alisdair sullivan
9e01e3a704 reduce test cases to saner set 2013-02-13 19:13:50 -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
d9e0611a52 remove stray tabs 2013-02-09 09:44:45 -08:00
alisdair sullivan
50133ffefd remove various tests from encoder and parser 2013-02-05 21:07:38 -08:00
alisdair sullivan
a325d266bc whitespace 2013-02-05 16:54:59 -08:00
alisdair sullivan
1bf196b9e3 move all encoder escape tests to jsx_utils 2013-02-05 16:52:28 -08:00
alisdair sullivan
c99cbd9d12 move all tests relating to cleaning of binary strings to jsx_utils 2013-02-05 16:40:15 -08:00
alisdair sullivan
b711bc9ef9 factor out clean_string to jsx_utils 2013-02-05 00:03:58 -08:00
alisdair sullivan
6ff94d8e5f strip trailing whitespace 2012-11-21 23:04:14 -08:00
alisdair sullivan
6bf3ff67e8 fix ordering problem for pre_encode 2012-09-03 21:27:00 -07:00
alisdair sullivan
4620081f6e fix for issue 19, incorrect handling of proplists when using pre_encode 2012-09-03 21:13:14 -07:00
alisdair sullivan
eb8ba481b5 whitespace 2012-06-08 21:44:39 -07:00
alisdair sullivan
7fb5b6ea7c allow pre_encode to handle tuples 2012-06-08 21:40:19 -07:00
alisdair sullivan
d081bd2539 change all stray badjson to badarg 2012-05-24 23:07:03 -07:00
alisdair sullivan
c15623a767 remove unused variables 2012-05-23 22:30:02 -07:00
alisdair sullivan
608f2437cf change behaviour of dirty_strings option, dont attempt to escape or ensure clean at all 2012-05-23 01:07:54 -07:00
alisdair sullivan
76723ce736 semantic change to way pre_encode works 2012-04-06 08:09:52 -07:00
alisdair sullivan
ae13b934c6 add {pre_encoder, F} variant of {pre_encoders, [F, G,...]} 2012-04-04 20:13:27 -07:00
alisdair sullivan
89292c940d pre_encoders for preprocessing input to encoder 2012-04-04 20:04:17 -07:00
alisdair sullivan
3bc2c68ea3 fix the tenses and forms of option flags 2012-03-31 21:58:18 -07:00
alisdair sullivan
95feb74d1b correct operation of ignore_bad_escapes 2012-03-31 20:51:47 -07:00
alisdair sullivan
068af5621a add tests for ignore_bad_escapes 2012-03-31 20:38:51 -07:00
alisdair sullivan
ab49c3379b style and whitespace 2012-03-31 17:45:23 -07:00
alisdair sullivan
0e4e04ee36 couple new tests for better test coverage in jsx_encoder 2012-03-31 17:45:23 -07:00
alisdair sullivan
cb6c676775 add test for dirty_strings 2012-03-31 17:45:23 -07:00
alisdair sullivan
7c810cb05d inline json escaping into encoder 2012-03-31 17:44:20 -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
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
2d2dd5f7c1 faster implementation of string cleaning 2012-03-28 21:51:21 -07:00
alisdair sullivan
7e243bafd1 remove tests for malformed 5 and 6 byte sequences 2012-03-28 21:23:35 -07:00
alisdair sullivan
edbe4d16ab fix clean string for bad utf8 2012-03-28 20:17:58 -07:00
alisdair sullivan
addb1e172d fix for failing tests on R14BXX 2012-03-27 16:56:12 -07:00
alisdair sullivan
04ea83266e slightly more efficient encoding of strings 2012-03-26 18:52:32 -07:00
alisdair sullivan
5bc8bfdf45 encoder now only performs a single pass on strings and can optionally json encode them 2012-03-24 19:42:00 -07:00
alisdair sullivan
978e75887a corrected handling of malformed utf8 sequences 2012-03-21 05:38:08 -07:00