Lines Matching refs:shouldBeEqualToString
64 shouldBeEqualToString("(0.0).toFixed(4)", "0.0000");
65 shouldBeEqualToString("(-0.0).toFixed(4)", "0.0000");
66 shouldBeEqualToString("(0.0).toFixed()", "0");
67 shouldBeEqualToString("(-0.0).toFixed()", "0");
70 shouldBeEqualToString("(1234.567).toFixed()", "1235");
71 shouldBeEqualToString("(1234.567).toFixed(0)", "1235");
73 shouldBeEqualToString("(1234.567).toFixed(null)", "1235");
74 shouldBeEqualToString("(1234.567).toFixed(false)", "1235");
75 shouldBeEqualToString("(1234.567).toFixed('foo')", "1235");
76 shouldBeEqualToString("(1234.567).toFixed(nan)", "1235"); // nan is treated like 0
78 shouldBeEqualToString("(1234.567).toFixed(1)", "1234.6");
79 shouldBeEqualToString("(1234.567).toFixed(true)", "1234.6"); // just like 1
80 shouldBeEqualToString("(1234.567).toFixed('1')", "1234.6"); // just like 1
82 shouldBeEqualToString("(1234.567).toFixed(2)", "1234.57");
83 shouldBeEqualToString("(1234.567).toFixed(2.9)", "1234.57");
84 shouldBeEqualToString("(1234.567).toFixed(5)", "1234.56700");
85 shouldBeEqualToString("(1234.567).toFixed(20)", "1234.56700000000000727596");
100 shouldBeEqualToString("posInf.toFixed()", "Infinity");
101 shouldBeEqualToString("negInf.toFixed()", "-Infinity");
102 shouldBeEqualToString("nan.toFixed()", "NaN");