aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChad Austin <caustin@gmail.com>2014-05-02 02:57:47 -0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2014-05-21 22:54:03 +0700
commit5e45a9ea3ea43d0cd58f35bc83156247f936c138 (patch)
treea0bdee4930d4a816305ef6c97ff7538c2913352b /tests
parente87094f40709d68dcb56e6576cf1a3b82b758d80 (diff)
and of course, instanceof should work as you expect
Diffstat (limited to 'tests')
-rw-r--r--tests/embind/embind.test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js
index 258cb404..1cadb7f1 100644
--- a/tests/embind/embind.test.js
+++ b/tests/embind/embind.test.js
@@ -1706,6 +1706,13 @@ module({
instance.delete();
assert.equal("optionaljs_optional_123", result);
});
+
+ test("instanceof", function() {
+ var instance = new Empty;
+ assert.instanceof(instance, Empty);
+ assert.instanceof(instance, cm.AbstractClass);
+ instance.delete();
+ });
});
*/