Skip to content

Commit

Permalink
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
stmuk committed Sep 20, 2014
1 parent 1aa3c11 commit b4fc0fe
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions S02-names-vars/76608.t
@@ -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";
8 changes: 8 additions & 0 deletions S02-names/75370.t
@@ -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";

6 changes: 6 additions & 0 deletions S02-types/77158.t
@@ -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)";
8 changes: 8 additions & 0 deletions S05-substitution/67222.t
@@ -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";

0 comments on commit b4fc0fe

Please sign in to comment.