Commit 32216d9c authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Add parser test for ambiguous input

parent df83e677
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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);