Lines Matching full:shouldbe
37 shouldBe("String()+Math.E", "'2.718281828459045'");
38 shouldBe("String()+Math.LN2", "'0.6931471805599453'");
39 shouldBe("String()+Math.LN10", "'2.302585092994046'");
40 shouldBe("String()+Math.LOG2E", "'1.4426950408889634'");
41 shouldBe("String()+Math.LOG10E", "'0.4342944819032518'");
42 shouldBe("String()+Math.PI", "'3.141592653589793'");
43 shouldBe("String()+Math.SQRT1_2", "'0.7071067811865476'");
44 shouldBe("String()+Math.SQRT2", "'1.4142135623730951'");
46 shouldBe("String()+Number.NaN", "'NaN'");
47 shouldBe("String()+Number.NEGATIVE_INFINITY", "'-Infinity'");
48 shouldBe("String()+Number.POSITIVE_INFINITY", "'Infinity'");
51 shouldBe("Math.abs(-5)", "5");
52 shouldBe("Math.acos(0)", "Math.PI/2");
53 shouldBe("Math.acos(1)", "0");
54 shouldBe("Math.ceil(1.1)", "2");
55 shouldBe("String()+Math.sqrt(2)", "String()+Math.SQRT2");
56 shouldBe("Math.ceil(1.6)", "2");
57 shouldBe("Math.round(0)", "0");
60 shouldBe("Math.round(0.2)", "0");
63 shouldBe("Math.round(1.1)", "1");
64 shouldBe("Math.round(1.6)", "2");
65 shouldBe("Math.round(-3.5)", "-3");
66 shouldBe("Math.round(-3.6)", "-4");
69 shouldBe("Math.round(-Infinity)", "-Infinity");
70 shouldBe("Math.round(Infinity)", "Infinity");
71 shouldBe("Math.round(99999999999999999999.99)", "100000000000000000000");
72 shouldBe("Math.round(-99999999999999999999.99)", "-100000000000000000000");
75 shouldBe("Math.log(Math.E*Math.E)", "2");
79 shouldBe("Math.log(1)", "0");
87 shouldBe("Math.max(1)", "1"); // NS 4.x and IE 5.x seem to know about 2 arg version only
88 shouldBe("Math.max(1, 2, 3)", "3"); // NS 4.x and IE 5.x seem to know about 2 arg version only
95 shouldBe("list","''");
101 shouldBe("delete my.v", "true")
103 shouldBe("delete Math.PI", "false")
105 shouldBe("my = myfunc, myfunc(4)", "5");
108 shouldBe("Boolean(Math)", "true");
112 shouldBe("Math.abs===Math.abs", "true")
113 shouldBe("Math.abs===Math.round", "false")
121 shouldBe("list","'a,b,'");
126 shouldBe("list","''");
131 shouldBe("list","'myprop,'");