From: Eric S. Raymond Date: Sat, 28 Aug 2010 15:34:08 +0000 (-0400) Subject: Added regression test featuring bubble.i. X-Git-Tag: 0.29~85 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=c950733f21ae1802895890833117a9f42ae5cd95;p=intercal.git Added regression test featuring bubble.i. --- diff --git a/pit/CATALOG b/pit/CATALOG index fbcdc9e..c03cc95 100644 --- a/pit/CATALOG +++ b/pit/CATALOG @@ -41,7 +41,8 @@ by Louis Howell 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, diff --git a/pit/Makefile b/pit/Makefile index 21975b2..366df1e 100644 --- a/pit/Makefile +++ b/pit/Makefile @@ -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 index 0000000..b15ff3e --- /dev/null +++ b/pit/bubble.chk @@ -0,0 +1,12 @@ + +MMCCCXVII + +XXXVI + +XXXVI + +XXIV + +XIX +_ + diff --git a/pit/bubble.tst b/pit/bubble.tst new file mode 100644 index 0000000..2ae6d24 --- /dev/null +++ b/pit/bubble.tst @@ -0,0 +1,7 @@ +SIX +THREE SIX +TWO FOUR +THREE SIX +TWO THREE ONE SEVEN +ONE NINER +ZERO