Changeset 22062
- Timestamp:
- 08/28/08 17:26:02 (3 months ago)
- Files:
-
- 1 modified
-
t/spec/S05-metasyntax/regex.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/spec/S05-metasyntax/regex.t
r21524 r22062 2 2 use Test; 3 3 4 plan 1 1;4 plan 14; 5 5 6 6 # L<S05/Regexes are now first-class language, not strings> … … 43 43 lives_ok({regex baz {qux}}, 'regex foo {...} is valid'); 44 44 } 45 46 #?rakudo skip 'rakudo cannot handle named regexes outside of grammars' 47 { 48 regex alien { ET }; 49 token archaeologist { Indiana }; 50 rule food { pasta }; 51 52 ok( 'ET phone home' ~~ alien, 'named regex outside of a grammar works' ); 53 ok( 'Indiana has left the fridge' ~~ archaeologist, 54 'named token outside of a grammar works' ); 55 ok( 'mmm, pasta' ~~ food, 56 'named tule outside of a grammar works' ); 57 }
