new test for new encoder/formatter

This commit is contained in:
alisdair sullivan 2011-07-17 17:29:36 -07:00
parent 04dfde559e
commit 2cdb755d08

View file

@ -212,7 +212,7 @@ minify_test_() ->
)
},
{"minify array",
?_assert(format(<<" [\n\ttrue,\n\tfalse,\n\tnull\n] ">>,
?_assert(format(<<" [\n\ttrue,\n\tfalse , \n \tnull\n] ">>,
[]
) =:= <<"[true,false,null]">>
)
@ -258,5 +258,16 @@ opts_test_() ->
)
}
].
terms_test_() ->
[
{"terms",
?_assert(format([start_object,
{key, "key"},
{string, "value"},
end_object
], []) =:= <<"{\"key\":\"value\"}">>
)}
].
-endif.