add test for numbers terminated by whitespace
This commit is contained in:
parent
17bc86ad60
commit
c733d06acb
1 changed files with 4 additions and 0 deletions
|
@ -995,6 +995,10 @@ special_number_test_() ->
|
||||||
{"1e4", ?_assertEqual(
|
{"1e4", ?_assertEqual(
|
||||||
[{float, 1.0e4}, end_json],
|
[{float, 1.0e4}, end_json],
|
||||||
decode(<<"1e4">>, [])
|
decode(<<"1e4">>, [])
|
||||||
|
)},
|
||||||
|
{"number terminated by whitespace", ?_assertEqual(
|
||||||
|
[start_array, {integer, 1}, end_array, end_json],
|
||||||
|
decode(<<"[ 1 ]">>, [])
|
||||||
)}
|
)}
|
||||||
].
|
].
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue