Skip to content
Browse files

Refactor v6ness for consistency.

  • Loading branch information...
1 parent af48a61 commit 4e2e24cb142ac0ed6a6c97ae36c8612b6552aeaa @ingydotnet committed Jul 26, 2010
Showing with 17 additions and 11 deletions.
  1. +1 −0 lib/TestML/Document.pm
  2. +4 −3 lib/TestML/Parser.pm
  3. +0 −2 lib/TestML/Parser/Grammar.pm
  4. +3 −4 lib/TestML/Runner.pm
  5. +3 −2 lib/TestML/Runner/TAP.pm
  6. +1 −0 t/arguments.t
  7. +1 −0 t/basic.t
  8. +1 −0 t/error.t
  9. +1 −0 t/markers.t
  10. +1 −0 t/no-data.t
  11. +1 −0 t/t1.t
View
1 lib/TestML/Document.pm
@@ -1,5 +1,6 @@
use v6;
+class TestML::Document { ... }
class TestML::Document::Meta { ... }
class TestML::Document::Tests { ... }
class TestML::Expression { ... }
View
7 lib/TestML/Parser.pm
@@ -1,17 +1,18 @@
use v6;
-class TestML::Parser;
+class TestML::Parser { ... }
+class TestML::Parser::Actions { ... }
use TestML::Parser::Grammar;
use TestML::Document;
+class TestML::Parser;
+
my $doc;
my $data;
my $statement;
my $transform_arguments;
my @expression_stack;
-class TestML::Parser::Actions { ... }
-
method parse($testml) {
$doc = TestML::Document.new();
@expression_stack = ();
View
2 lib/TestML/Parser/Grammar.pm
@@ -298,5 +298,3 @@ token core_point_name {
token user_point_name {
<LOWER> <WORD>*
}
-
-# vim: filetype=perl6
View
7 lib/TestML/Runner.pm
@@ -1,10 +1,11 @@
use v6;
-class TestML::Runner;
-
+class TestML::Runner { ... }
class TestML::Context { ... }
use TestML::Parser;
+class TestML::Runner;
+
has $.bridge;
has $.document;
has $.base = $*PROGRAM_NAME.flip.subst(/.*?'/'/, '').flip; #'RAKUDO
@@ -135,5 +136,3 @@ has $.block is rw;
has $.point is rw;
has $.value is rw;
has $.error is rw;
-
-# vim ft=perl6
View
5 lib/TestML/Runner/TAP.pm
@@ -1,8 +1,9 @@
use v6;
-use TestML::Runner;
-class TestML::Runner::TAP is TestML::Runner;
use Test;
+use TestML::Runner;
+
+class TestML::Runner::TAP is TestML::Runner;
method title () {
if $.doc.meta.data<Title> -> $title {
View
1 t/arguments.t
@@ -1,3 +1,4 @@
+use v6;
use TestML::Runner::TAP;
TestML::Runner::TAP.new(
View
1 t/basic.t
@@ -1,3 +1,4 @@
+use v6;
use TestML::Runner::TAP;
TestML::Runner::TAP.new(
View
1 t/error.t
@@ -1,3 +1,4 @@
+use v6;
use TestML::Runner::TAP;
TestML::Runner::TAP.new(
View
1 t/markers.t
@@ -1,3 +1,4 @@
+use v6;
use TestML::Runner::TAP;
TestML::Runner::TAP.new(
View
1 t/no-data.t
@@ -1,3 +1,4 @@
+use v6;
use TestML::Runner::TAP;
TestML::Runner::TAP.new(
View
1 t/t1.t
@@ -1,3 +1,4 @@
+use v6;
use TestML::Runner::TAP;
TestML::Runner::TAP.new(

0 comments on commit 4e2e24c

Please sign in to comment.
Something went wrong with that request. Please try again.