python sort test

This commit is contained in:
Thomas Levine 2016-03-06 13:39:29 +00:00
parent bd5240d726
commit 40d1c63f37
2 changed files with 5 additions and 1 deletions

4
tests/Internals/sort_python Executable file
View File

@ -0,0 +1,4 @@
set -e
TESTING_URCHIN_INTERNALS=true . ../../urchin
unsorted='@ b\n- d\n? a\n~ c\n! e\n'
test $(printf "${unsorted}" | sort_python | cut -d\ -f2|tr -d '\n') = edabc

2
urchin
View File

@ -648,4 +648,4 @@ main() {
urchin_exit "${?}"
}
main "$@"
test -n "${TESTING_URCHIN_INTERNALS}" || main "$@"