Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Basic tests for newline pragma.
  • Loading branch information
jnthn committed Nov 5, 2015
1 parent 238fd35 commit 6785742
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions S16-io/newline.t
@@ -0,0 +1,17 @@
use v6;
use Test;

plan 3;

{
use newline :lf;
is "\n".encode('ascii'), Buf.new(0x0A), 'use newline :lf influences \n';
}
{
use newline :cr;
is "\n".encode('ascii'), Buf.new(0x0D), 'use newline :cr influences \n';
}
{
use newline :crlf;
is "\n".encode('ascii'), Buf.new(0xD, 0x0A), 'use newline :crlf influences \n';
}

0 comments on commit 6785742

Please sign in to comment.