Current section
Files
Jump to
Current section
Files
gen/test/gj_encode_test.erl
-module(gj_encode_test).
-compile(no_auto_import).
-export([encode_test/0]).
encode_test() ->
gleam@should:equal(
gj:encode(
{array,
[null,
{boolean, true},
{boolean, false},
{array, [{array, []}]},
{object,
[{<<"a"/utf8>>, {number, 1.0}}, {<<"b"/utf8>>, {array, []}}]}]}
),
<<"[null,true,false,[[]],{\"a\":1.0,\"b\":[]}]"/utf8>>
).