Lines Matching full:shouldbe
97 function shouldBe(_a, _b)
100 debug("WARN: shouldBe() expects string arguments");
120 function shouldBeTrue(_a) { shouldBe(_a, "true"); }
121 function shouldBeFalse(_a) { shouldBe(_a, "false"); }
122 function shouldBeNaN(_a) { shouldBe(_a, "NaN"); }
123 function shouldBeNull(_a) { shouldBe(_a, "null"); }
128 shouldBe(a, unevaledString);
133 // evaluated, as for shouldBe(). 'expected' may be any type and will be
141 // All this fuss is to avoid the string-arg warning from shouldBe().
148 shouldBe("'" + actualValue.toString().replace(/\n/g, "") + "'",
153 shouldBe(actual, expected);
155 shouldBe("typeof " + actual, "'boolean'");
161 shouldBe(actual, stringify(expected));