From: Ben Pfaff Date: Sun, 20 Mar 2016 16:49:26 +0000 (-0700) Subject: SORT VARIABLES: Add test. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=585256ed385f22013e5a6302166ba2a056bd2aa8;hp=97cbae3cb75b5ee79bf53dc192de4b9b91ae53ea;p=pspp SORT VARIABLES: Add test. This should have been in the initial commit; sorry. --- 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 <