Changeset 23050 for t

Show
Ignore:
Timestamp:
11/21/08 18:44:30 (7 weeks ago)
Author:
jnthn
Message:

[spectest] Test for multi-jointed namespaces with grammars.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S05-grammar/namespace.t

    r22455 r23050  
    22use Test; 
    33 
    4 plan 6; 
     4plan 7; 
    55 
    66# TODO: smart match against a grammar to get a Match object  
     
    4141is(B::A.WHAT, 'Failure', 'regex defined in separate namespace from grammar'); 
    4242 
     43 
     44=begin description 
     45 
     46check that multi-jointed namespaces work with grammars 
     47 
     48=end description 
     49 
     50grammar Foo::Bar { 
     51    token foo { foo } 
     52} 
     53is("foo" ~~ Foo::Bar::foo, 'foo', 'regex in a namespace callable');