Skip to content

Commit 4ec74ae

Browse files
committed
trim whitespace from wc in tests
1 parent dbb63f7 commit 4ec74ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/functional_tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if [ $? != 0 ]; then
1919
fi
2020

2121
# Test that 500 interations with 3 groups produces 1500 simulation lines
22-
result=$(head -n 10 ./samples.csv | (../simulate 500 0.25 0.25 0.5) | wc -l | diff - <(echo "1500") 2>&1)
22+
result=$(head -n 10 ./samples.csv | (../simulate 500 0.25 0.25 0.5) | wc -l | tr -d ' \t' | diff - <(echo "1500") 2>&1)
2323
if [ $? != 0 ]; then
2424
echo "---------"
2525
echo "Expected '../simulate 500 0.25 0.25 0.5' to produce 1500 lines"
@@ -30,7 +30,7 @@ if [ $? != 0 ]; then
3030
fi
3131

3232
# Test that 1000 interations with 2 groups produces 2000 simulation lines
33-
result=$(head -n 10 ./samples.csv | (../simulate 1000 0.25 0.25) | wc -l | diff - <(echo "2000") 2>&1)
33+
result=$(head -n 10 ./samples.csv | (../simulate 1000 0.25 0.25) | wc -l | tr -d ' \t' | diff - <(echo "2000") 2>&1)
3434
if [ $? != 0 ]; then
3535
echo "---------"
3636
echo "Expected '../simulate 500 0.25 0.25' to produce 2000 lines"

0 commit comments

Comments
 (0)