Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (11 sloc) 0.512 kb
2a013e1a »
2008-07-23 [gsoc_spectest] tests for handling of unknown metasyntax and escaping…
1 use v6;
2 use Test;
3
4 plan 6;
5
6 # L<S05/Simplified lexical parsing of patterns/not all non-identifier glyphs are currently meaningful as metasyntax>
7
8 # testing unknown metasyntax handling
9
10 eval_dies_ok('"aa!" ~~ /!/', '"!" is not valid metasyntax');
11 lives_ok({"aa!" ~~ /\!/}, 'escaped "!" is valid');
12 lives_ok({"aa!" ~~ /'!'/}, 'quoted "!" is valid');
13
14 eval_dies_ok('"aa!" ~~ /\a/', 'escaped "a" is not valid metasyntax');
15 lives_ok({"aa!" ~~ /a/}, '"a" is valid');
16 lives_ok({"aa!" ~~ /'a'/}, 'quoted "a" is valid');
Something went wrong with that request. Please try again.