From 40d1c63f3711c4c045f1f42d6703fe1b18ace4d1 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 6 Mar 2016 13:39:29 +0000 Subject: [PATCH] python sort test --- tests/Internals/sort_python | 4 ++++ urchin | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 tests/Internals/sort_python diff --git a/tests/Internals/sort_python b/tests/Internals/sort_python new file mode 100755 index 0000000..9b92bba --- /dev/null +++ b/tests/Internals/sort_python @@ -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 diff --git a/urchin b/urchin index c5a60e9..2fa5eaf 100755 --- a/urchin +++ b/urchin @@ -648,4 +648,4 @@ main() { urchin_exit "${?}" } -main "$@" +test -n "${TESTING_URCHIN_INTERNALS}" || main "$@"