Skip to content

Commit

Permalink
Merge pull request #405 from dogbert17/test-rt-127352
Browse files Browse the repository at this point in the history
Test for RT 127352
  • Loading branch information
dogbert17 committed Mar 22, 2018
2 parents 64a0eae + bc2894a commit f2d422f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S04-declarations/constant.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;
use lib $?FILE.IO.parent(2).add("packages");
plan 72;
plan 73;

# L<S04/The Relationship of Blocks and Declarations/"The new constant declarator">

Expand Down Expand Up @@ -384,4 +384,11 @@ throws-like q[constant Mouse = Rat; constant Mouse = Rat], X::Redeclaration,
ok "foo" ~~ $constant-regex, 'Can match a exported constant regex';
}

# RT #127352
{
constant $sepreg = rx/(<[\\/]>)/;
my $filenameW = "c:\\g\\b.mp4";
is $filenameW ~~ $sepreg, \, 'Regex stored in constant with sigil works properly';
}

# vim: ft=perl6

0 comments on commit f2d422f

Please sign in to comment.