]> thyrsus.com Git - intercal.git/commitdiff
Added regression test featuring bubble.i.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 28 Aug 2010 15:34:08 +0000 (11:34 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 28 Aug 2010 15:34:08 +0000 (11:34 -0400)
pit/CATALOG
pit/Makefile
pit/bubble.chk [new file with mode: 0644]
pit/bubble.tst [new file with mode: 0644]

index fbcdc9e03e13479e3c0fc8af1981fccf4a5446bd..c03cc9521f148ab2f51aa306e617e17cc2cdde11 100644 (file)
@@ -41,7 +41,8 @@ by Louis Howell <nazgul@netcom.com>
     t_tet
     glider
     gun                        Input files for both Life programs
-  bubble.i             Bubble sort
+  bubble.i             + Bubble sort. List of numbers to be sorted must
+                       be preceded with the length of the list.
   icat.i               + Sends input to output
   lib/lib2.i           New library routines: decrement, decrement and branch 
                        on 0, add bit, 16-bit division with remainder, 
index 21975b25df2f4fc8d4335587d860b07e02671712..366df1e3de245e427777ebe25a4c5e106b9b0a60 100644 (file)
@@ -96,6 +96,7 @@ TARGETS = $(BASE2SOURCES:.i=) \
 # For instructions on test conventions, see the header comment of regresscheck
 test: $(TARGETS)
        @./beer | ./regresscheck beer 
+       @cat bubble.tst | ./bubble | ./regresscheck bubble
        @cat fft-delta.tst | ./fft | ./regresscheck fft-delta
        @cat fft-tophat.tst | ./fft | ./regresscheck fft-tophat
        @echo 'Hello, sailor!' | ./regresscheck icat 
diff --git a/pit/bubble.chk b/pit/bubble.chk
new file mode 100644 (file)
index 0000000..b15ff3e
--- /dev/null
@@ -0,0 +1,12 @@
+         
+MMCCCXVII
+     
+XXXVI
+     
+XXXVI
+    
+XXIV
+   
+XIX
+_
+
diff --git a/pit/bubble.tst b/pit/bubble.tst
new file mode 100644 (file)
index 0000000..2ae6d24
--- /dev/null
@@ -0,0 +1,7 @@
+SIX
+THREE SIX
+TWO FOUR
+THREE SIX
+TWO THREE ONE SEVEN
+ONE NINER
+ZERO