diff options
Diffstat (limited to 'test/it.t')
-rwxr-xr-x | test/it.t | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -481,6 +481,7 @@ foreach ([$dummy, false, true, null, 1, "a", "Ä", "/", []] as $var) is(it::json_decode(it::json_encode($var)), $var); is(it::json_decode('{"foo":"bar"}')->foo, "bar"); is(it::json_decode('{"foo":"bar"}', ['assoc' => true])['foo'], "bar"); +is(it::json_decode("\nnull\n\n", ['it_error' => ['fatal' => true]]), null, 'json_decode pretty printed null value'); is(it::cdist(null), true); is(it::cdist(), true); |