Should have 100% coverage on saveresume.c now
authorAaron Traas <aaron@traas.org>
Mon, 19 Jun 2017 17:23:24 +0000 (13:23 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 19 Jun 2017 17:55:04 +0000 (13:55 -0400)
tests/resumefail2.chk [new file with mode: 0644]
tests/resumefail2.log [new file with mode: 0644]

diff --git a/tests/resumefail2.chk b/tests/resumefail2.chk
new file mode 100644 (file)
index 0000000..f1026b5
--- /dev/null
@@ -0,0 +1,36 @@
+
+Welcome to Adventure!!  Would you like instructions?
+
+> n
+
+You are standing at the end of a road before a small brick building.
+Around you is a forest.  A small stream flows out of the building and
+down a gully.
+
+> seed 1240742801
+Seed set to 1240742801
+
+You're in front of building.
+
+> resume
+
+To resume an earlier Adventure, you must abandon the current one.
+
+Is this acceptable?
+
+> y
+
+OK
+
+I'm sorry, but that Adventure was begun using Version-166209188682739509.-5 of the
+program, and this is Version2.6.  You must find the other version
+in order to resume that Adventure.
+
+You're in front of building.
+
+
+You scored 32 out of a possible 430, using 1 turn.
+
+You are obviously a rank amateur.  Better luck next time.
+
+To achieve the next higher rating, you need 14 more points.
diff --git a/tests/resumefail2.log b/tests/resumefail2.log
new file mode 100644 (file)
index 0000000..cd0d989
--- /dev/null
@@ -0,0 +1,6 @@
+## Resume input from /dev/random, inducing a version mismatch error
+n
+seed 1240742801
+resume
+y
+/dev/random
\ No newline at end of file