MCPcopy Create free account
hub / github.com/nodejs/node / testCompares

Function testCompares

deps/v8/test/mjsunit/undetectable.js:17–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17function testCompares() {
18 assertTrue(!obj);
19 assertFalse(!!obj);
20 assertFalse(obj == true);
21 assertFalse(obj == false);
22 assertFalse(obj === true);
23 assertFalse(obj === false);
24 assertEquals(2, obj ? 1 : 2);
25 assertEquals(obj, true && obj);
26 assertEquals(obj, false || obj);
27}
28
29function testIfs() {
30 if (obj) {

Callers 1

undetectable.jsFile · 0.85

Calls 3

assertTrueFunction · 0.70
assertFalseFunction · 0.50
assertEqualsFunction · 0.50

Tested by

no test coverage detected