X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-CGI-Ex;a=blobdiff_plain;f=t%2F9_jsondump_00_base.t;h=f3eea8674332b715395a58c81a71ebf0470fbfc1;hp=29f6482f6ce98864f937aaf30e6ed33c38a06964;hb=8abbacc82b52f460bef67c1923ae98873a95e123;hpb=d0287461de3f9b5c49ce02b22957022bdc5e87d8 diff --git a/t/9_jsondump_00_base.t b/t/9_jsondump_00_base.t index 29f6482..f3eea86 100644 --- a/t/9_jsondump_00_base.t +++ b/t/9_jsondump_00_base.t @@ -7,7 +7,7 @@ =cut use strict; -use Test::More tests => 52; +use Test::More tests => 57; use_ok('CGI::Ex::JSONDump'); @@ -80,14 +80,19 @@ test_dump(['a' => 1], "[\"a\",1]", {pretty => 0, array_nl => "\n"}); test_dump(1, "1"); +test_dump(0, "0"); test_dump('1.0', '"1.0"'); test_dump('123456789012345', '"123456789012345"'); +test_dump('0.1', '0.1'); +test_dump('.1', '".1"'); +test_dump('00.1', '"00.1"'); test_dump('a', '"a"'); test_dump("\n", '"\\n"'); test_dump("\\", '"\\\\"'); test_dump('