"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "t/spec/S03-metaops/hyper.t" between
rakudo-2020.08.2.tar.gz and rakudo-2020.09.tar.gz

About: Rakudo is a compiler for the Perl 6 programming language.

hyper.t  (rakudo-2020.08.2):hyper.t  (rakudo-2020.09)
skipping to change at line 321 skipping to change at line 321
} }
{ # no confusion with postfix:<i> (see S32-Numeric) { # no confusion with postfix:<i> (see S32-Numeric)
my class D { method i { 42 } }; my class D { method i { 42 } };
is D.i, 42, 'manually defined method i is not confused with postfix:<i>' ; is D.i, 42, 'manually defined method i is not confused with postfix:<i>' ;
is D.i(), 42, 'manually defined method i is not confused with postfix:<i >'; is D.i(), 42, 'manually defined method i is not confused with postfix:<i >';
is 4i, Complex.new(0, 4), 'postfix:<i> still works'; is 4i, Complex.new(0, 4), 'postfix:<i> still works';
is 4\i, Complex.new(0, 4), 'postfix:<i> still works (2)'; is 4\i, Complex.new(0, 4), 'postfix:<i> still works (2)';
throws-like { 4.i }, X::Method::NotFound, throws-like { 4.i }, X::Method::NotFound,
message => "No such method 'i' for invocant of type 'Int'", message => *.starts-with("No such method 'i' for invocant of type 'I nt'"),
'dotted form of postfix:<i> fails'; 'dotted form of postfix:<i> fails';
is (2,3)»i, (Complex.new(0, 2), Complex.new(0, 3)), is (2,3)»i, (Complex.new(0, 2), Complex.new(0, 3)),
'postfix:<i> works on list elements'; 'postfix:<i> works on list elements';
is (2,3)>>i, (Complex.new(0, 2), Complex.new(0, 3)), is (2,3)>>i, (Complex.new(0, 2), Complex.new(0, 3)),
'postfix:<i> works on list elements (ASCII form)'; 'postfix:<i> works on list elements (ASCII form)';
} }
{ {
my @a = ( { 42 }, { 43 } ); my @a = ( { 42 }, { 43 } );
is @a».(), (42, 43), 'calling .() on list elements works'; is @a».(), (42, 43), 'calling .() on list elements works';
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)