Skip to content

Commit

Permalink
Mark t/nqp/063-slurp.t as self-referential
Browse files Browse the repository at this point in the history
Also, there is no need to accept two numbers as the number of chars
anymore. With 0412c22 the JVM backend learned to count a CRLF
as one char as well. So even if the test file would be written with
CRLF as line endings, nqp::chars should give back the same number
as for LF as line endings.

This should fix #512.
  • Loading branch information
usev6 committed Feb 6, 2023
1 parent 848bf1b commit 510e050
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/nqp/063-slurp.t
@@ -1,6 +1,8 @@
# This test file is self-referential and shouldn't be changed.
# Please put other tests for slurp in another file.
plan(1);

my $content := slurp("t/nqp/063-slurp.t");
ok(nqp::chars($content) == 150 || nqp::chars($content) == 156, "File slurped");
ok(nqp::chars($content) == 234, "File slurped");

# vim: ft=perl6

0 comments on commit 510e050

Please sign in to comment.