From 8bfee41e214b015fe6eb8ef0c185859f5b6401a7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 14 Aug 2010 05:18:31 +0200 Subject: Add remaining error classes, sort of --- t/60-bin-efa.t | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 't/60-bin-efa.t') diff --git a/t/60-bin-efa.t b/t/60-bin-efa.t index 8337b62..2b60233 100644 --- a/t/60-bin-efa.t +++ b/t/60-bin-efa.t @@ -3,7 +3,7 @@ use strict; use warnings; use 5.010; -use Test::Command tests => 85; +use Test::Command tests => 94; my $efa = 'bin/efa'; my $testarg = "E HBf MH HBf"; @@ -154,13 +154,11 @@ $cmd->exit_is_num(0); $cmd->stdout_is_file("t/out/e_hbf_mh_hbf.ignore_none"); $cmd->stderr_is_eq($EMPTY); -__END__ - $cmd = Test::Command->new( cmd => "$efa $test_parse < t/in/ambiguous" ); -$cmd->exit_is_num(1); +$cmd->exit_isnt_num(0); $cmd->stdout_is_eq($EMPTY); $cmd->stderr_is_file('t/out/ambiguous'); @@ -168,7 +166,7 @@ $cmd = Test::Command->new( cmd => "$efa $test_parse < t/in/no_connections" ); -$cmd->exit_is_num(2); +$cmd->exit_isnt_num(0); $cmd->stdout_is_eq($EMPTY); $cmd->stderr_is_file('t/out/no_connections'); @@ -176,6 +174,6 @@ $cmd = Test::Command->new( cmd => "$efa $test_parse < t/in/invalid_input" ); -$cmd->exit_is_num(3); +$cmd->exit_isnt_num(0); $cmd->stdout_is_eq($EMPTY); $cmd->stderr_is_file('t/out/invalid_input'); -- cgit v1.2.3