From: Eric S. Raymond Date: Mon, 30 Aug 2010 09:20:50 +0000 (-0400) Subject: Regreesion test featuring tests/testplat. X-Git-Tag: 0.29~79^2~1 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=5d59f2ccbee58a4a4b6138156c0fdf1f24cca3d6;p=intercal.git Regreesion test featuring tests/testplat. --- diff --git a/pit/CATALOG b/pit/CATALOG index edfd488..6c92ba5 100644 --- a/pit/CATALOG +++ b/pit/CATALOG @@ -58,6 +58,8 @@ by Louis Howell iching.doc Description of the two I Ching programs change.i Count up different ways to make change change.doc Description of change.i + tests/testsplat.i + Tests behavior of comments and things resembling + comments. by Matt Dimeo beer.i + Print out lyrics to "99 Bottles of Beer On The Wall" @@ -156,14 +158,14 @@ by Malcom Ryan between threads. Simply reads in a list of numbers (terminated by ZERO) and writes them out. -The programs test16bit.i, testarray.i, testcf.i, testlib2.i, -limits.*, testops*i, testsplat.i, were all written by Louis -Howell. Of these, testcf.i might be considered an interesting -puzzle---try to figure out what it's doing. The others are pretty -boring, but are included as diagnostics and because so few other -example programs exist. Not all of these even produce interesting -diagnostic output; it may be necessary to look at the degenerated C -code to determine if the compiler is doing the right thing. +The programs test16bit.i, testarray.i, testcf.i, testlib2.i, limits.*, +testops*i, were all written by Louis Howell. Of these, testcf.i might +be considered an interesting puzzle---try to figure out what it's +doing. The others are pretty boring, but are included as diagnostics +and because so few other example programs exist. Not all of these +even produce interesting diagnostic output; it may be necessary to +look at the degenerated C code to determine if the compiler is doing +the right thing. End of file CATALOG ------------------- diff --git a/pit/Makefile b/pit/Makefile index 381903a..da841ea 100644 --- a/pit/Makefile +++ b/pit/Makefile @@ -127,6 +127,7 @@ test: $(TARGETS) @./tests/test1 2>&1 | ./regresscheck tests/test1 @cat tests/test2.tst | ./tests/test2 | ./regresscheck tests/test2 @./tests/testonce | ./regresscheck tests/testonce + @./tests/testsplat 2>&1 | ./regresscheck tests/testsplat @cat tests/whileadd.tst | ./tests/whileadd | ./regresscheck tests/whileadd @echo "Tests complete." diff --git a/pit/tests/testsplat.chk b/pit/tests/testsplat.chk new file mode 100644 index 0000000..e5ba681 --- /dev/null +++ b/pit/tests/testsplat.chk @@ -0,0 +1,9 @@ + +I + +II + +III +ICL000I DO %50 RED OUT #4 DO READ OUT #5 + ON THE WAY TO 4 + CORRECT SOURCE AND RESUBNIT