Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (27 sloc) 0.698 kb
use v6;
use Test;
plan 3;
BEGIN { @*INC.push: 't/spec/packages' }
use Test::Util;
my Str $x;
is_run $x, :args['-e', 'print q[Moin]'],
{
out => 'Moin',
err => '',
status => 0,
},
'-e print $something works';
is_run $x, :args['-e', "print q[\c[LATIN SMALL LETTER A WITH DOT ABOVE]]"],
{
out => "\c[LATIN SMALL LETTER A WITH DOT ABOVE]",
err => '',
status => 0,
},
'-e print $something works with non-ASCII string literals';
is_run $x, :args['-e', 'print <1 2> »+« <1 1>'],
{
out => "23",
err => '',
status => 0,
},
'-e works with non-ASCII program texts';
Jump to Line
Something went wrong with that request. Please try again.