diff options
author | Camil Staps | 2015-12-10 08:42:56 +0000 |
---|---|---|
committer | Camil Staps | 2015-12-10 08:42:56 +0000 |
commit | 55748d704df7242b1acedae79c2eea7616eac2a9 (patch) | |
tree | 461e9ab103148d93b0873812c4bd9224a0b1cd50 /Practical2/tester | |
parent | Removed Java Practical2; moved C to main directory (diff) |
Faster implementation, test enhancement Practical2
Tester strings are padded nicely.
Implementation uses less memory and is faster with -Ofast.
Diffstat (limited to 'Practical2/tester')
-rwxr-xr-x | Practical2/tester/test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Practical2/tester/test.sh b/Practical2/tester/test.sh index 9051e97..8f42b77 100755 --- a/Practical2/tester/test.sh +++ b/Practical2/tester/test.sh @@ -9,7 +9,7 @@ cd "$dir" for tc in "$samples/"*.in; do answer=$(cat ${tc/in/out}) header=$(head -n1 "$tc" | tr -d '\n') - echo -n "Running $(basename $tc) $(printf '%-12s' "($answer ")$(printf '%-12s' "/ $header)") ... " + echo -n "Running $(printf '%-15s' "$(basename $tc)") $(printf '%-10s' "($answer ")$(printf '%-10s' "/ $header)") ... " time_start=$(($(date +%s%N)/1000000)) result=$(eval "cat '$tc' | $cmd") time_end=$(($(date +%s%N)/1000000)) |