while (fp == NULL) {
char* name = myreadline("\nFile name: ");
- // Autocomplete can leave the input with an extra traoling space.
+ // Autocomplete can leave the input with an extra trailing space.
if (name != NULL && strlen(name) > 0 && name[strlen(name) - 1] == ' ')
name[strlen(name) - 1] = '\0';
if (name == NULL)
OPTS=`sed -n /#options:/s///p <$${file}.log`; \
advent $$OPTS <$${file}.log >$${file}.chk 2>&1 || exit 1; \
done; \
+ echo "inven" | advent isofoo.log /dev/stdin >multifile.chk
rm -f scratch.tmp
savecheck: savegames
then diff --text -u $${file}.chk /tmp/regress$$$$ || exit 1; \
else echo "*** Nonzero return status on $${file}!"; exit 1; fi \
done; \
+ $(ECHO) " multifile ## Test multiple file arguments"
+ @(echo "inven" | advent isofoo.log /dev/stdin | diff --text -u multifile.chk -) || exit 1
rm -f scratch.tmp /tmp/regress$$$$
# Steps towards TAP and parallelization.
# There's a blocker in that the log tests can't be run concurrently
-# due to isssues with colliding save files.
+# due to issues with colliding save files.
# The TAP filter. Only affects presentation of the test suite messages
TAPCONSUMER=tappy
# Fall back to safety if our declared TAP consumer does not exist.
-# This is helpful in the CI environment, where it wiuld be better for
+# This is helpful in the CI environment, where it would be better for
# the logfiles to carry the raw TAP messages.
TAPFILTER=$(shell command -v $(TAPCONSUMER) || echo cat)
--- /dev/null
+
+Welcome to Adventure!! Would you like instructions?
+
+> ## Test isolated 'foo' word
+> n
+> 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.
+
+> foo
+> foo
+
+Nothing happens.
+
+> inven
+> inven
+
+You're not carrying anything.
+
+
+You scored 32 out of a possible 430, using 2 turns.
+
+You are obviously a rank amateur. Better luck next time.
+
+To achieve the next higher rating, you need 14 more points.
## Resume, then win
# Here to get class threshold of 426
+# Note, savefile name has trailing space
n
resume
y
-saveresume_win.adv
-blast
\ No newline at end of file
+saveresume_win.adv
+blast