From 29d152860f4a0d48e2a2f4ea4e94fa1e667c00da Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 26 Aug 2010 13:10:53 -0400 Subject: [PATCH] Added regression check using sort.i. --- pit/CATALOG | 2 +- pit/Makefile | 4 +++- pit/sort.chk | 8 ++++++++ pit/sort.tst | 5 +++++ 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 pit/sort.chk create mode 100644 pit/sort.tst diff --git a/pit/CATALOG b/pit/CATALOG index 6bb997f..0ddd8cd 100644 --- a/pit/CATALOG +++ b/pit/CATALOG @@ -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 diff --git a/pit/Makefile b/pit/Makefile index aff0aab..1cc7019 100644 --- a/pit/Makefile +++ b/pit/Makefile @@ -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 index 0000000..677bbe2 --- /dev/null +++ b/pit/sort.chk @@ -0,0 +1,8 @@ + +III + +V + +VI + +VII diff --git a/pit/sort.tst b/pit/sort.tst new file mode 100644 index 0000000..ce81556 --- /dev/null +++ b/pit/sort.tst @@ -0,0 +1,5 @@ +SIX +FIVE +SEVEN +THREE +ZERO -- 2.43.0