We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93aea23 commit db474efCopy full SHA for db474ef
t/nqp/59-nqpop.t
@@ -2,7 +2,7 @@
2
3
# Test nqp::op pseudo-functions.
4
5
-plan(111);
+plan(113);
6
7
8
ok( nqp::add_i(5,2) == 7, 'nqp::add_i');
@@ -95,6 +95,10 @@ ok( nqp::not_i(0) == 1, 'nqp::not_i');
95
ok( nqp::not_i(1) == 0, 'nqp::not_i');
96
ok( nqp::not_i(-1) == 0, 'nqp::not_i');
97
98
+ok(nqp::escape("\b \n \r \f \t \" \\ \e foo") eq '\\b \\n \\r \\f \\t \\" \\\\ \e foo','nqp::escape');
99
+my $var := 'foo';
100
+ok(nqp::escape($var) eq 'foo','nqp::escape works with literal');
101
+
102
ok( nqp::isnull(nqp::null()) == 1, 'nqp::isnull/nqp::null' );
103
ok( nqp::isnull("hello") == 0, '!nqp::isnull(string)' );
104
ok( nqp::isnull(13232) == 0, 'nqp::isnull(number)' );
0 commit comments