From 585256ed385f22013e5a6302166ba2a056bd2aa8 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 20 Mar 2016 09:49:26 -0700 Subject: [PATCH] SORT VARIABLES: Add test. This should have been in the initial commit; sorry. --- tests/language/dictionary/sort-variables.at | 60 +++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 tests/language/dictionary/sort-variables.at diff --git a/tests/language/dictionary/sort-variables.at b/tests/language/dictionary/sort-variables.at new file mode 100644 index 0000000000..92b9ccb3b3 --- /dev/null +++ b/tests/language/dictionary/sort-variables.at @@ -0,0 +1,60 @@ +AT_BANNER([SORT VARIABLES]) + +AT_SETUP([SORT VARIABLES]) +# This reverses the order of its input lines. +# From the GNU sed manual. +tac () { + sed -n '1! G +$ p +h' +} + +test_sort () { + cat > sort-variables.sps <