new test for new encoder/formatter
This commit is contained in:
parent
04dfde559e
commit
2cdb755d08
1 changed files with 12 additions and 1 deletions
|
@ -212,7 +212,7 @@ minify_test_() ->
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
{"minify array",
|
{"minify array",
|
||||||
?_assert(format(<<" [\n\ttrue,\n\tfalse,\n\tnull\n] ">>,
|
?_assert(format(<<" [\n\ttrue,\n\tfalse , \n \tnull\n] ">>,
|
||||||
[]
|
[]
|
||||||
) =:= <<"[true,false,null]">>
|
) =:= <<"[true,false,null]">>
|
||||||
)
|
)
|
||||||
|
@ -259,4 +259,15 @@ opts_test_() ->
|
||||||
}
|
}
|
||||||
].
|
].
|
||||||
|
|
||||||
|
terms_test_() ->
|
||||||
|
[
|
||||||
|
{"terms",
|
||||||
|
?_assert(format([start_object,
|
||||||
|
{key, "key"},
|
||||||
|
{string, "value"},
|
||||||
|
end_object
|
||||||
|
], []) =:= <<"{\"key\":\"value\"}">>
|
||||||
|
)}
|
||||||
|
].
|
||||||
|
|
||||||
-endif.
|
-endif.
|
Loading…
Add table
Add a link
Reference in a new issue