Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:found

46 // Expected and found values the same objects, or the same primitive
51 // Expected and found values are identical primitive values or functions
58 // The difference between expected and found value is within certain tolerance.
61 // The found object is an Array with the same length and elements
66 // The found object must have the same enumerable properties as the
70 // Assert that the string conversion of the found value is equal to
72 // check the real structure of the found value.
75 // Checks that the found value is true. Use with boolean expressions
79 // Checks that the found value is false.
82 // Checks that the found value is null. Kept for historical compatibility,
86 // Checks that the found value is *not* null.
99 // Asserts that the found value is an instance of the constructor passed
169 function fail(expectedText, found, name_opt) {
177 "> found <" + PrettyPrint(found) + ">";
235 assertSame = function assertSame(expected, found, name_opt) {
238 if (found === expected) {
239 if (expected !== 0 || (1 / expected) == (1 / found)) return;
240 } else if ((expected !== expected) && (found !== found)) {
243 fail(PrettyPrint(expected), found, name_opt);
247 assertEquals = function assertEquals(expected, found, name_opt) {
248 if (!deepEquals(found, expected)) {
249 fail(PrettyPrint(expected), found, name_opt);
255 function assertEqualsDelta(expected, found, delta, name_opt) {
256 assertTrue(Math.abs(expected - found) <= delta, name_opt);
260 assertArrayEquals = function assertArrayEquals(expected, found, name_opt) {
265 assertEquals(expected.length, found.length, start + "array length");
266 if (expected.length == found.length) {
268 assertEquals(expected[i], found[i],
275 assertPropertiesEqual = function assertPropertiesEqual(expected, found,
278 if (!deepObjectEquals(expected, found)) {
279 fail(expected, found, name_opt);
284 assertToStringEquals = function assertToStringEquals(expected, found,
286 if (expected != String(found)) {
287 fail(expected, found, name_opt);