repo.or.cz
/
GalaxyCodeBases.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
modified: src1/input.c
[GalaxyCodeBases.git]
/
c_cpp
/
lib
/
natsort
/
run-tests.bash
blob
4a23c10bb471e14473064d825ea487cebc08340d
1
run_test
() {
2
diff
-u
"
$1
"
<(
.
/
natsort
<
"
$2
"
) &&
return
3
echo
"Test failed for input file '
$2
'"
4
exit
1
5
}
6
7
run_test sorted-dates test-dates
8
run_test sorted-fractions test-fractions
9
run_test sorted-words test-words
10
11
echo
"All tests passed"
12
exit
0