Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
RT # 76608, 75370, 77158 and 67222 were testneeded should be closable…
… in RT
- Loading branch information
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| use v6; | ||
| use Test; | ||
| plan 2; | ||
|
|
||
| my $y = "foo$(my $x = 42)bar"; | ||
| ok $x eq 42, "RT #76608 simple assignment"; | ||
| ok $y eq "foo42bar", "variable interpolation inside string"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| use v6; | ||
| use Test; | ||
| plan 1; | ||
|
|
||
| enum somenum <a b c d e>; | ||
| my somenum $temp = d; | ||
| ok $temp eq 'd', "RT #75370 enum name"; | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| use v6; | ||
| use Test; | ||
| plan 2; | ||
|
|
||
| ok :(Int).perl eq ':(Int)', "RT #77158 Doing .perl on an :(Int)"; | ||
| ok :(Array of Int).perl eq ':(Array[Int])', "Doing .perl on an :(Array of Int)"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| use v6; | ||
| use Test; | ||
| plan 1; | ||
|
|
||
| $_ = "(foo,bar,(baz))"; | ||
| $_.=subst( /<-[(),]>+/, { "'$/'" }, :g ); | ||
|
|
||
| ok $_ eq "('foo','bar',('baz'))", "RT #67222 check the value of \$/ in closures in the second argument of .=subst calls"; |