From d81d1a6217b06c8a88236dc628cfb83c5dd2b881 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 16 Mar 2009 23:48:39 +0100 Subject: [PATCH] Updated tests after the recent change of judges' messages to stderr. --- judge/judge-tok.t | 22 +++++++++++----------- judge/token.t | 16 ++++++++-------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/judge/judge-tok.t b/judge/judge-tok.t index 109c5a4..1bc7a8c 100644 --- a/judge/judge-tok.t +++ b/judge/judge-tok.t @@ -1,8 +1,8 @@ -# Test cases for judge-tok.c +# Test cases for judge-tok.c 2>&1 # Identical input and output Name: ok -Run: bin/judge-tok $1 $2 +Run: bin/judge-tok $1 $2 2>&1 In1: abc d e fgh ijk lmn In2: abc d e fgh @@ -10,7 +10,7 @@ In2: abc d e fgh # Differences in whitespaces are OK Name: ws -Run: bin/judge-tok $1 $2 +Run: bin/judge-tok $1 $2 2>&1 In1: abc d e fgh ijk lmn In2: abc d e fgh @@ -18,7 +18,7 @@ In2: abc d e fgh # Differences in line breaks are not Name: lines1 -Run: bin/judge-tok $1 $2 +Run: bin/judge-tok $1 $2 2>&1 In1: abc d e fgh ijk lmn @@ -28,7 +28,7 @@ Exit: 1 # ... unless the -n switch is given Name: lines2 -Run: bin/judge-tok -n $1 $2 +Run: bin/judge-tok -n $1 $2 2>&1 In1: abc d e fgh ijk lmn @@ -37,7 +37,7 @@ In2: abc d e fgh # Trailing empty lines are also not OK Name: trail1 -Run: echo >>$1 && bin/judge-tok $1 $2 +Run: echo >>$1 && bin/judge-tok $1 $2 2>&1 In1: abc d e fgh ijk lmn In2: abc d e fgh @@ -46,7 +46,7 @@ Exit: 1 # ... unless -t is given Name: trail1 -Run: echo >>$1 && bin/judge-tok -t $1 $2 +Run: echo >>$1 && bin/judge-tok -t $1 $2 2>&1 In1: abc d e fgh ijk lmn In2: abc d e fgh @@ -54,7 +54,7 @@ In2: abc d e fgh # Differences in case are not Name: case1 -Run: bin/judge-tok $1 $2 +Run: bin/judge-tok $1 $2 2>&1 In1: abc d e FGH IJK lmn In2: abc d e fgh @@ -63,7 +63,7 @@ Exit: 1 # ... unless -i is given Name: case2 -Run: bin/judge-tok -i $1 $2 +Run: bin/judge-tok -i $1 $2 2>&1 In1: abc d e FGH IJK lmn In2: abc d e fgh @@ -71,7 +71,7 @@ In2: abc d e fgh # By default, we compare everything literal Name: real1 -Run: bin/judge-tok $1 $2 +Run: bin/judge-tok $1 $2 2>&1 In1: 0.1000001 1. 1e-50 @@ -84,7 +84,7 @@ Exit: 1 # ... but if -r is given, we allow small differences Name: real2 -Run: bin/judge-tok -r $1 $2 +Run: bin/judge-tok -r $1 $2 2>&1 In1: 0.1000001 1. 1e-50 diff --git a/judge/token.t b/judge/token.t index 2171c5d..32278b6 100644 --- a/judge/token.t +++ b/judge/token.t @@ -4,7 +4,7 @@ # A simple test case with several spaces Name: std -Run: bin/test-tok +Run: bin/test-tok 2>&1 In: abc 10 20 30 Out: @@ -14,7 +14,7 @@ Out: # The same test case in line mode Name: std-l -Run: bin/test-tok -l +Run: bin/test-tok -l 2>&1 In: abc 10 20 30 Out: @@ -26,31 +26,31 @@ Out: # An unterminated line Name: unterm -Run: tr -d '\n' | bin/test-tok +Run: tr -d '\n' | bin/test-tok 2>&1 In: abc Out: # An unterminated line in line mode Name: unterm-l -Run: tr -d '\n' | bin/test-tok -l +Run: tr -d '\n' | bin/test-tok -l 2>&1 In: abc Out: # Small token size limit, but fits Name: big1 -Run: bin/test-tok -s +Run: bin/test-tok -s 2>&1 In: abcdefghijklmnop Out: # Small token size limit, does not fit Name: big2 -Run: bin/test-tok -s +Run: bin/test-tok -s 2>&1 In: abcdefghijklmnopq Exit: 1 # Testing parsers Name: parse1 -Run: bin/test-tok -vl +Run: bin/test-tok -vl 2>&1 In: abcdef 0 5 -5 Out: @@ -62,7 +62,7 @@ Out: # More parsing: integer extremes Name: parse2 -Run: bin/test-tok -v +Run: bin/test-tok -v 2>&1 In: -2147483647 2147483647 -2147483648 2147483648 -4294967295 4294967295 -- 2.39.2