1 ! Copyright (C) 2016 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: io.streams.string json.prettyprint json.reader tools.test ;
4 IN: json.prettyprint.tests
11 "{\"a\":3}" json> pprint-json>string
14 [ "{ }" ] [ "{ }" json> pprint-json>string ] unit-test
15 [ "[ ]" ] [ "[ ]" json> pprint-json>string ] unit-test
16 [ "null" ] [ "null" json> pprint-json>string ] unit-test
17 [ "false" ] [ "false" json> pprint-json>string ] unit-test
18 [ "3" ] [ "3" json> pprint-json>string ] unit-test
23 ]" ] [ "[3,4,5]" json> pprint-json>string ] unit-test
29 }" ] [ "{3:30,4:40,5:50}" json> pprint-json>string ] unit-test