Skip to content

Commit

Permalink
Make duplicates test a little better
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Apr 1, 2019
1 parent 0c1df74 commit 0727cca
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions test-all.sh
Expand Up @@ -115,15 +115,18 @@ else
fi

# Try out duplicates
if ./scc -d "examples/duplicates/" | grep -e "Java" | grep -q -e " 1 "; then
echo -e "${GREEN}PASSED duplicates test"
else
echo -e "${RED}======================================================="
echo -e "FAILED Duplicates should be consistent"
echo -e "======================================================="
exit
fi

for i in {1..100}
do
if ./scc -d "examples/duplicates/" | grep -e "Java" | grep -q -e " 1 "; then
:
else
echo -e "${RED}======================================================="
echo -e "FAILED Duplicates should be consistent"
echo -e "======================================================="
exit
fi
done
echo -e "${GREEN}PASSED duplicates test"

echo -e "${NC}Cleaning up..."
rm ./scc
Expand Down

0 comments on commit 0727cca

Please sign in to comment.