modified: src1/input.c
[GalaxyCodeBases.git] / c_cpp / lib / natsort / run-tests.bash
blob4a23c10bb471e14473064d825ea487cebc08340d
1 run_test() {
2 diff -u "$1" <( ./natsort < "$2" ) && return
3 echo "Test failed for input file '$2'"
4 exit 1
7 run_test sorted-dates test-dates
8 run_test sorted-fractions test-fractions
9 run_test sorted-words test-words
11 echo "All tests passed"
12 exit 0