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 d9b5bc3 commit b3fdc3fCopy full SHA for b3fdc3f
t/nqp/106-unicodenames.t
@@ -1,4 +1,4 @@
1
-plan(29);
+plan(31);
2
is(nqp::getstrfromname('FULL STOP'), '.', 'getstrfromname works');
3
is(nqp::codepointfromname('FULL STOP'), nqp::ord('.'), 'codepointfromname works');
4
is(nqp::getstrfromname('super fake not real name'), '', 'getstrfromname returns empty string for nonexistant codepoint names');
@@ -35,6 +35,9 @@ else {
35
36
}
37
38
+is(nqp::codepointfromname('NULL'), 0, 'nqp::codepointfromname with NULL');
39
+is(nqp::getstrfromname('NULL'), "\0", 'nqp::getstrfromname with NULL');
40
+
41
is(nqp::codepointfromname('LATIN CAPITAL LETTER A'), 65, 'nqp::codepointfromname');
42
43
is(nqp::codepointfromname('NO SUCH NAME IN UNICODE WHATSOEVER'), -1, 'nqp::codepointfromname with missing unicode character name');
0 commit comments