From 110c2536803f5ae0ada76251783daef2e874cfef Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Sun, 13 Nov 2011 18:30:03 -0600 Subject: [PATCH] Leave a note about further improvments --- test/jiffy_tests.erl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/jiffy_tests.erl b/test/jiffy_tests.erl index 5aece89..f7075c0 100644 --- a/test/jiffy_tests.erl +++ b/test/jiffy_tests.erl @@ -95,6 +95,15 @@ json() -> ?SIZED(S, json_text(S)). +%% XXX: Add generators +% +% We should add generators that generate JSON binaries directly +% so we can test things that aren't produced by the encoder. +% +% We should also have a version of the JSON generator that inserts +% errors into the JSON that we can test for. + + escaped_utf8_bin() -> ?SUCHTHAT(Bin, ?LET(S, ?SUCHTHAT(L, list(escaped_char()), L /= []),