Lines Matching refs:shouldBeEqualToString

29 shouldBeEqualToString("(0.0).toExponential(4)", "0.0000e+0");
30 shouldBeEqualToString("(-0.0).toExponential(4)", "0.0000e+0");
31 shouldBeEqualToString("(0.0).toExponential()", "0e+0");
32 shouldBeEqualToString("(-0.0).toExponential()", "0e+0");
34 shouldBeEqualToString("(123.456).toExponential()", "1.23456e+2");
35 shouldBeEqualToString("(123.456).toExponential(0)", "1e+2");
37 shouldBeEqualToString("(123.456).toExponential(null)", "1e+2");
38 shouldBeEqualToString("(123.456).toExponential(false)", "1e+2");
39 shouldBeEqualToString("(123.456).toExponential('foo')", "1e+2");
40 shouldBeEqualToString("(123.456).toExponential(nan)", "1e+2"); // nan is treated like 0
42 shouldBeEqualToString("(123.456).toExponential(1)", "1.2e+2");
44 shouldBeEqualToString("(123.456).toExponential(true)", "1.2e+2"); // just like 1
45 shouldBeEqualToString("(123.456).toExponential('1')", "1.2e+2");
47 shouldBeEqualToString("(123.456).toExponential(2)", "1.23e+2");
48 shouldBeEqualToString("(123.456).toExponential(2.9)", "1.23e+2");
49 shouldBeEqualToString("(123.456).toExponential(3)", "1.235e+2");
50 shouldBeEqualToString("(123.456).toExponential(5)", "1.23456e+2");
51 shouldBeEqualToString("(123.456).toExponential(6)", "1.234560e+2");
52 shouldBeEqualToString("(123.456).toExponential(20)", "1.23456000000000003070e+2");
63 shouldBeEqualToString("posInf.toExponential()", "Infinity");
64 shouldBeEqualToString("negInf.toExponential()", "-Infinity");
65 shouldBeEqualToString("nan.toExponential()", "NaN");
67 shouldBeEqualToString("(0.01).toExponential()", "1e-2");
68 shouldBeEqualToString("(0.1).toExponential()", "1e-1");
69 shouldBeEqualToString("(0.9).toExponential()", "9e-1");
70 shouldBeEqualToString("(0.9999).toExponential()", "9.999e-1");
71 shouldBeEqualToString("(0.9999).toExponential(2)", "1.00e+0");