Lines Matching refs:null
39 shouldBe("compileAndSerialize('a = { 1: null }')", "'a = { 1: null }'");
40 shouldBe("compileAndSerialize('a = { 0: null }')", "'a = { 0: null }'");
41 shouldBe("compileAndSerialize('a = { 1.0: null }')", "'a = { 1.0: null }'");
42 shouldBe("compileAndSerialize('a = { \"1.0\": null }')", "'a = { \"1.0\": null }'");
43 shouldBe("compileAndSerialize('a = { 1e-500: null }')", "'a = { 1e-500: null }'");
44 shouldBe("compileAndSerialize('a = { 1e-300: null }')", "'a = { 1e-300: null }'");
45 shouldBe("compileAndSerialize('a = { 1e300: null }')", "'a = { 1e300: null }'");
46 shouldBe("compileAndSerialize('a = { 1e500: null }')", "'a = { 1e500: null }'");
48 shouldBe("compileAndSerialize('a = { NaN: null }')", "'a = { NaN: null }'");
49 shouldBe("compileAndSerialize('a = { Infinity: null }')", "'a = { Infinity: null }'");
51 shouldBe("compileAndSerialize('a = { \"1\": null }')", "'a = { \"1\": null }'");
52 shouldBe("compileAndSerialize('a = { \"1hi\": null }')", "'a = { \"1hi\": null }'");
53 shouldBe("compileAndSerialize('a = { \"\\\'\": null }')", "'a = { \"\\\'\": null }'");
54 shouldBe("compileAndSerialize('a = { \"\\\\\"\": null }')", "'a = { \"\\\\\"\": null }'");
59 shouldThrow("compileAndSerialize('a = { --1: null }')");
60 shouldThrow("compileAndSerialize('a = { -NaN: null }')");
61 shouldThrow("compileAndSerialize('a = { -0: null }')");
62 shouldThrow("compileAndSerialize('a = { -0.0: null }')");
63 shouldThrow("compileAndSerialize('a = { -Infinity: null }')");