bool is_valid(struct game_t valgame)
{
/* Save files can be roughly grouped into three groups:
- * With valid, reacheable state, with valid, but unreachable
+ * With valid, reachable state, with valid, but unreachable
* state and with invalid state. We check that state is
* valid: no states are outside minimal or maximal value
*/
-# Test-suite makefile for opeb-adventure
+# Test-suite makefile for open-adventure
# Use absolute path so tests that change working directory still use
# scripts from parent directory. Note that using $PWD seems to fail
@./outcheck.sh "test -r with valid input"
SCHECKS = scheck1 scheck2 scheck3 scheck4 scheck5 scheck6 scheck7
-# Don't run this from here, you'll get ctyptic warnings and no good result
-# if the advent binary wasn't built with covrage flags. Do "make clean covetage"
+# Don't run this from here, you'll get cryptic warnings and no good result
+# if the advent binary wasn't built with coverage flags. Do "make clean coverage"
# from the top-level directory.
coverage: check
lcov -t "advent" -o $(PARDIR)/advent.info -c -d $(PARDIR) --gcov-tool=$(GCOV)
# does not remove them).
#
# The diff file produced has corrected spellings in it. That's what oldfilter
-# is for, to massage out the original dpellings and avoid noise diffs.
+# is for, to massage out the original spellings and avoid noise diffs.
# Diffs in amount of whitespace and trailing whitespace are ignored
#
# A magic comment of NOCOMPARE in a log file excludes it from this comparison.
# making it a skipped test in the TAP view. First use of this was to avoid a
-# spurious mismatch on the news text. Other uses avoid spurios mismatches due
+# spurious mismatch on the news text. Other uses avoid spurious mismatches due
# to bug fixes.
#
# When adding more tests, bear in mind that any game that continues after a
def loc_coverage(locations, text, report):
# locations have a long and a short description, that each have to
- # be checked seperately
+ # be checked separately
for name, loc in locations:
desc = loc["description"]
if name not in report["messages"]:
report["covered"] += 1
def coverage_report(db, check_file_contents):
- # Create report for each catagory, including total items, number of items
+ # Create report for each category, including total items, number of items
# covered, and a list of the covered messages
report = {}
for name in db.keys():
-## Test interpersing commands amidst magic words
-# Check for "Nothing happens." in game output indicatung sequence interrupt.
+## Test interspersing commands amidst magic words
+# Check for "Nothing happens." in game output indicating sequence interrupt.
no
seed 1318612053
e
## Death by pitfall
-# Die 3 times so we can cover all the opituary messages
+# Die 3 times so we can cover all the obituary messages
n
seed 780351908
enter building
## Save right after starting
-#NOCOMPARE Can't compare to asvent430 due to version skew
+#NOCOMPARE Can't compare to advent430 due to version skew
n
seed 1240742801
save
## Resume and then quit
-#NOCOMPARE Can't compate to asvent430 due to version skew
+#NOCOMPARE Can't compare to advent430 due to version skew
n
in
resume
## Resume from artificial "corrupted" save
-#NOCOMPARE Can't compare to asvent430 due to version skew
+#NOCOMPARE Can't compare to advent430 due to version skew
n
resume
cheat_savetamper.adv
get rod
wave rod
attack bird
-# Also, test grare as a motion verb.
+# Also, test grate as a motion verb.
grate
up
n