Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test calling nqp::objprimspec on a null.
  • Loading branch information
pmurias committed Mar 9, 2016
1 parent 1a9e0a7 commit 8e41e49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/nqp/93-oo-ops.t
@@ -1,4 +1,4 @@
plan(15);
plan(16);
class Foo {
method foo() {
'bar';
Expand Down Expand Up @@ -45,3 +45,4 @@ ok(nqp::objprimspec(int) == 1, 'nqp::objprimspec on int');
ok(nqp::objprimspec(str) == 3, 'nqp::objprimspec on str');
ok(nqp::objprimspec(num) == 2, 'nqp::objprimspec on num');
ok(nqp::objprimspec(Foo) == 0, 'nqp::objprimspec on Foo');
ok(nqp::objprimspec(nqp::null()) == 0, 'nqp::objprimspec on a null');

0 comments on commit 8e41e49

Please sign in to comment.