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

Function shouldBeOfType

deps/v8/test/webkit/fast/js/kde/func-decl.js:26–31  ·  view source on GitHub ↗
(msg, val, type)

Source from the content-addressed store, hash-verified

24description("KDE JS Test");
25// We can't use normal shouldBe here, since they'd eval in the wrong context...
26function shouldBeOfType(msg, val, type) {
27 if (typeof(val) != type)
28 testFailed(msg + ": value has type " + typeof(val) + " , not:" + type);
29 else
30 testPassed(msg);
31}
32
33function shouldBeVal(msg, val, expected) {
34 if (val != expected)

Callers 1

testFunction · 0.70

Calls 2

testFailedFunction · 0.85
testPassedFunction · 0.85

Tested by 1

testFunction · 0.56