Permalink
Browse files

Add a sanity test for Grammar::Tracer.

  • Loading branch information...
jnthn committed Jan 9, 2013
1 parent d173558 commit b3d113d2f3e0a8ed6a4f99cfe47b0b2a8b331250
Showing with 16 additions and 0 deletions.
  1. +16 −0 t/tracer.t
View
@@ -0,0 +1,16 @@
+use Test;
+use Grammar::Tracer;
+
+plan 1;
+
+grammar Sample {
+ token TOP { <foo> }
+ token foo { x }
+}
+
+lives_ok
+ {
+ my $*OUT = class { method say(*@x) { }; method print(*@x) { } }
+ Sample.parse('x')
+ },
+ 'Parsing a grammar with the tracer works';

0 comments on commit b3d113d

Please sign in to comment.