diff options
author | Ophir LOJKINE <pere.jobs@gmail.com> | 2014-05-19 23:21:21 +0200 |
---|---|---|
committer | Ophir LOJKINE <pere.jobs@gmail.com> | 2014-05-19 23:21:21 +0200 |
commit | ea01df8b734fb59c8dd435b3c3a7c0aa77a9b08f (patch) | |
tree | bbb0594d17fa7e6d9fd435dff33608465164923d /tests/embind/embind.test.js | |
parent | ba00e71ac68819df214fdfc57dda71c5bb58e887 (diff) | |
parent | f681994208ed73f7642e5658ba9482c1743f0f35 (diff) |
Merge remote-tracking branch 'upstream/incoming' into fast-cwrap
Diffstat (limited to 'tests/embind/embind.test.js')
-rw-r--r-- | tests/embind/embind.test.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js index 3ded811a..53d3988a 100644 --- a/tests/embind/embind.test.js +++ b/tests/embind/embind.test.js @@ -2030,6 +2030,16 @@ module({ assert.equal(65538, instance.c); }); }); + + BaseFixture.extend("typeof", function() { + test("typeof", function() { + assert.equal("object", cm.getTypeOfVal(null)); + assert.equal("object", cm.getTypeOfVal({})); + assert.equal("function", cm.getTypeOfVal(function(){})); + assert.equal("number", cm.getTypeOfVal(1)); + assert.equal("string", cm.getTypeOfVal("hi")); + }); + }); }); /* global run_all_tests */ |