# New Ticket Created by Solomon Foster # Please include the string: [perl #67882] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=67882 >
Rakudo commit version: 241545b9d6c73f95bd8e5255187c30d5e77e6381 Parrot revision number: 40185 Test code written by KyleHa++: my $range; lives_ok { '1 3' ~~ /(\d+) \s (\d+)/; $range = $0..$1 }, 'can make range from match vars'; is $range.from, 1, 'range starts at one'; is $range.to, 3, 'range ends at three'; #?rakudo todo 'range from match vars defies stringification' lives_ok { "$range" }, 'can stringify range'; #?rakudo skip 'range from match vars defies comparison' is $range, (1,2,3), 'range is correct'; Multiple Dispatch: No suitable candidate found for 'cmp', with signature 'PP->I' in method Range::true (src/gen_setting.pm:1650) called from method Range::Str (src/gen_setting.pm:1654) called from sub Test::is (Test.pm:62) called from Main (t/spec/S03-operators/range.rakudo:149) (This is on OS X, but probably universal.) -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com