diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-06-05 19:42:21 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-06-05 19:42:21 +0200 |
commit | 32216d9cb83c0f78ae3f5d347b6a56d3b0ff8120 (patch) | |
tree | b801399dca468b40df0cd4356c87eec09bf0b0b5 | |
parent | df83e677ee9e964cf70f09a610221df6d3aa0335 (diff) |
Add parser test for ambiguous input
-rw-r--r-- | test/50-efa.t | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/50-efa.t b/test/50-efa.t index bf653a7..575481d 100644 --- a/test/50-efa.t +++ b/test/50-efa.t @@ -3,7 +3,7 @@ use strict; use warnings; use 5.010; -use Test::Command tests => 76; +use Test::Command tests => 79; my $efa = 'bin/efa'; my $testarg = "E HBf MH HBf"; @@ -138,3 +138,11 @@ $cmd = Test::Command->new( $cmd->exit_is_num(0); $cmd->stdout_is_file("test/parse_e_hbf_mh_hbf.ignore_none"); $cmd->stderr_is_eq($EMPTY); + +$cmd = Test::Command->new( + cmd => "$efa $test_parse < test/dump_ambiguous" +); + +$cmd->exit_is_num(1); +$cmd->stdout_is_file('test/parse_ambiguous'); +$cmd->stderr_is_eq($EMPTY); |