Update bash script

This commit is contained in:
Serene-Arc
2022-07-23 14:50:57 +10:00
parent 55c95495b2
commit 44e4c16b76
3 changed files with 10 additions and 0 deletions

View File

@@ -41,3 +41,10 @@ teardown() {
assert [ "$( wc -l 'successful.txt' | awk '{ print $1 }' )" -eq "1" ];
assert [ "$( grep -Ecv '\w{6,7}' 'successful.txt' )" -eq "0" ];
}
@test "success score filter" {
run ../extract_successful_ids.sh ./example_logfiles/succeed_score_filter.txt
echo "$output" > successful.txt
assert [ "$( wc -l 'successful.txt' | awk '{ print $1 }' )" -eq "2" ];
assert [ "$( grep -Ecv '\w{6,7}' 'successful.txt' )" -eq "0" ];
}