Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (13 sloc) 0.595 kB
use v6;
use Test;
=begin pod
Infix comparison operators L<S03/"Changes to Perl 5 operators"/"stealth postfix">
=end pod
plan 4;
# infix less-than requires whitespace; otherwise it's interpreted as
# a <...> hash subscript
eval-lives-ok "1 <2", "infix less-than (<) requires whitespace before.";
eval-lives-ok "1 < 2" , "infix less-than (<) requires whitespace before.";
eval-dies-ok("1< 2", "infix less-than (<) requires whitespace before, so this is a parse error.");
eval-dies-ok("1<2", "infix less-than (<) requires whitespace before, so this is a parse error.");
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.