Skip to content

Commit e997347

Browse files
committed
Test nqp::objectid.
1 parent 87092ac commit e997347

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

t/nqp/92-where.t

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
plan(2);
1+
plan(4);
22
class Foo {
33
}
44
my $a := Foo.new;
55
my $b := Foo.new;
66
ok(nqp::where($a) == nqp::where($a), 'nqp::where returns the same value for the same object');
77
ok(nqp::where($a) != nqp::where($b), 'nqp::where returns different values for different objects');
8+
9+
ok(nqp::objectid($a) == nqp::objectid($a), 'nqp::objectid returns the same value for the same object');
10+
ok(nqp::objectid($a) != nqp::objectid($b), 'nqp::objectid returns different values for different objects');

0 commit comments

Comments
 (0)