Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/api.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use strict;
use warnings;

use Test::More;

use Pegex::Parser;
Expand Down
3 changes: 3 additions & 0 deletions test/export-api.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use strict;
use warnings;

# BEGIN { $Pegex::Parser::Debug = 1 }
use Test::More tests => 8;

Expand Down
3 changes: 3 additions & 0 deletions test/flatten.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use strict;
use warnings;

use Test::More tests => 1;
use Pegex;

Expand Down
3 changes: 3 additions & 0 deletions test/function-rule.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use strict;
use warnings;

use Test::More;
use Pegex::Parser;

Expand Down
3 changes: 3 additions & 0 deletions test/grammar-api.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use strict;
use warnings;

use Test::More tests => 1;

package MyGrammar1;
Expand Down
5 changes: 4 additions & 1 deletion test/parse.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use strict;
use warnings;

# $Pegex::Parser::Debug = 1;

my $t; use lib ($t = -e 't' ? 't' : 'test');
Expand All @@ -6,7 +9,7 @@ use Test::More tests => 1;
use Pegex;
use Pegex::Input;

$grammar_file = "$t/mice.pgx";
my $grammar_file = "$t/mice.pgx";

eval { pegex( Pegex::Input->new(file => $grammar_file) )->parse("3 blind mice\n") }; $@
? fail $@
Expand Down
3 changes: 3 additions & 0 deletions test/repeat.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use strict;
use warnings;

use Test::More;

use Pegex;
Expand Down
3 changes: 3 additions & 0 deletions test/safe.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use strict;
use warnings;

use Test::More;

# 2015-02-03 Safe.pm fails to load on Travis + 5.14
Expand Down
3 changes: 3 additions & 0 deletions test/sample.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use strict;
use warnings;

use Test::More;

eval "use YAML::XS; 1" or
Expand Down