]> thyrsus.com Git - intercal.git/commitdiff
Added regression check using sort.i.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 26 Aug 2010 17:10:53 +0000 (13:10 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 26 Aug 2010 17:10:53 +0000 (13:10 -0400)
pit/CATALOG
pit/Makefile
pit/sort.chk [new file with mode: 0644]
pit/sort.tst [new file with mode: 0644]

index 6bb997f34cdab65c046e31b91356fcaaf91d2752..0ddd8cd2fc74d33d23c63d25efada23bfb0295a1 100644 (file)
@@ -136,7 +136,7 @@ by Alex Smith
   explib/syslibc.c    The INTERCAL base 2 syslib, optimised version in C
   explib/compunex.c   An example flow-control routine (computed NEXT)
   explib/ecto_b98.c   A library that links INTERCAL and Funge-98 code
-  sort.i              An insertion-sort program testing computed ABSTAIN
+  sort.i              + An insertion-sort program testing computed ABSTAIN
   continuation.i      A continuation library and example program
   continuation.doc    About usage and internals of the continuation library
 
index aff0aab374c8b22b54aabde54e6b6d16bbcfcf9e..1cc701975f55710acd2b74c10a0bbd9e00f07ecb 100644 (file)
@@ -34,6 +34,7 @@ BASE2SOURCES = \
        ./rot13.i \
        ./rot13b.i \
        ./sample.i \
+       ./sort.i \
        ./tests/hello.i \
        ./tests/iogerunds.i \
        ./tests/permute.i \
@@ -90,10 +91,11 @@ test: $(TARGETS)
        @echo 'A man, a plan, a canal, Panama.' | rot13 | regresscheck rot13
        @echo 'A man, a plan, a canal, Panama.' | rot13b | regresscheck rot13b
        @echo "FIVE" | pi | regresscheck pi
+       @cp quine.i quine.chk; quine | regresscheck quine; rm quine.chk 
+       @cat sort.tst | sort | regresscheck sort
        @tests/count | regresscheck tests/count 
        @tests/hello | regresscheck tests/hello 
        @tests/permute | regresscheck tests/permute 
-       @cp quine.i quine.chk; quine | regresscheck quine; rm quine.chk 
        @tests/sink 2>&1 | regresscheck tests/sink
        @echo "Tests complete."
 
diff --git a/pit/sort.chk b/pit/sort.chk
new file mode 100644 (file)
index 0000000..677bbe2
--- /dev/null
@@ -0,0 +1,8 @@
+   
+III
+ 
+V
+  
+VI
+   
+VII
diff --git a/pit/sort.tst b/pit/sort.tst
new file mode 100644 (file)
index 0000000..ce81556
--- /dev/null
@@ -0,0 +1,5 @@
+SIX
+FIVE
+SEVEN
+THREE
+ZERO