projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e49fb5f
)
Spelling fixes
290/head
author
Torbjörn Andersson
<eriktorbjorn@users.sourceforge.net>
Sat, 1 Apr 2023 08:39:21 +0000
(10:39 +0200)
committer
Torbjörn Andersson
<eriktorbjorn@users.sourceforge.net>
Sun, 2 Apr 2023 05:32:24 +0000
(07:32 +0200)
saveresume.c
patch
|
blob
|
history
tests/Makefile
patch
|
blob
|
history
tests/coverage_dungeon.py
patch
|
blob
|
history
tests/foobug.log
patch
|
blob
|
history
tests/pitfall.log
patch
|
blob
|
history
tests/saveresume.1.log
patch
|
blob
|
history
tests/saveresume.2.log
patch
|
blob
|
history
tests/savetamper.log
patch
|
blob
|
history
tests/weirdbird.log
patch
|
blob
|
history
diff --git
a/saveresume.c
b/saveresume.c
index 575b11f2486a319ec2090b284ad8ed2a7d05a7ff..dedb5bbe288a03b6581ad18895ea4183984f83ba 100644
(file)
--- a/
saveresume.c
+++ b/
saveresume.c
@@
-172,7
+172,7
@@
int restore(FILE* fp)
bool is_valid(struct game_t valgame)
{
/* Save files can be roughly grouped into three groups:
bool is_valid(struct game_t valgame)
{
/* Save files can be roughly grouped into three groups:
- * With valid, reach
e
able 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
*/
* state and with invalid state. We check that state is
* valid: no states are outside minimal or maximal value
*/
diff --git
a/tests/Makefile
b/tests/Makefile
index 7e17443d7b18d9b5752cb2136da5ae7b5310e993..7087e69dd530be54d5a869a09bfa50d2ecd7f958 100644
(file)
--- a/
tests/Makefile
+++ b/
tests/Makefile
@@
-1,4
+1,4
@@
-# Test-suite makefile for ope
b
-adventure
+# Test-suite makefile for ope
n
-adventure
# Use absolute path so tests that change working directory still use
# scripts from parent directory. Note that using $PWD seems to fail
# Use absolute path so tests that change working directory still use
# scripts from parent directory. Note that using $PWD seems to fail
@@
-92,8
+92,8
@@
scheck7:
@./outcheck.sh "test -r with valid input"
SCHECKS = scheck1 scheck2 scheck3 scheck4 scheck5 scheck6 scheck7
@./outcheck.sh "test -r with valid input"
SCHECKS = scheck1 scheck2 scheck3 scheck4 scheck5 scheck6 scheck7
-# Don't run this from here, you'll get c
t
yptic warnings and no good result
-# if the advent binary wasn't built with cov
rage flags. Do "make clean covet
age"
+# Don't run this from here, you'll get c
r
yptic warnings and no good result
+# if the advent binary wasn't built with cov
erage flags. Do "make clean cover
age"
# from the top-level directory.
coverage: check
lcov -t "advent" -o $(PARDIR)/advent.info -c -d $(PARDIR) --gcov-tool=$(GCOV)
# from the top-level directory.
coverage: check
lcov -t "advent" -o $(PARDIR)/advent.info -c -d $(PARDIR) --gcov-tool=$(GCOV)
@@
-134,12
+134,12
@@
count:
# does not remove them).
#
# The diff file produced has corrected spellings in it. That's what oldfilter
# does not remove them).
#
# The diff file produced has corrected spellings in it. That's what oldfilter
-# is for, to massage out the original
d
pellings and avoid noise diffs.
+# is for, to massage out the original
s
pellings 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
# 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 spurio
u
s mismatches due
# to bug fixes.
#
# When adding more tests, bear in mind that any game that continues after a
# to bug fixes.
#
# When adding more tests, bear in mind that any game that continues after a
diff --git
a/tests/coverage_dungeon.py
b/tests/coverage_dungeon.py
index e61523957c390ef7ed23fdd2c71fbb8f18c58bca..c583ffb5f79689fbb9244a86d86edec4be009965 100755
(executable)
--- a/
tests/coverage_dungeon.py
+++ b/
tests/coverage_dungeon.py
@@
-99,7
+99,7
@@
def obj_coverage(objects, text, report):
def loc_coverage(locations, text, report):
# locations have a long and a short description, that each have to
def loc_coverage(locations, text, report):
# locations have a long and a short description, that each have to
- # be checked sep
e
rately
+ # be checked sep
a
rately
for name, loc in locations:
desc = loc["description"]
if name not in report["messages"]:
for name, loc in locations:
desc = loc["description"]
if name not in report["messages"]:
@@
-173,7
+173,7
@@
def actions_coverage(items, text, report):
report["covered"] += 1
def coverage_report(db, check_file_contents):
report["covered"] += 1
def coverage_report(db, check_file_contents):
- # Create report for each cat
a
gory, including total items, number of items
+ # Create report for each cat
e
gory, including total items, number of items
# covered, and a list of the covered messages
report = {}
for name in db.keys():
# covered, and a list of the covered messages
report = {}
for name in db.keys():
diff --git
a/tests/foobug.log
b/tests/foobug.log
index 8ff35b8ab17da5690ab83a002a33fffa6b3e8a17..8e3dc8f11a404d04cd5b67cf6fa0f10a06623b98 100644
(file)
--- a/
tests/foobug.log
+++ b/
tests/foobug.log
@@
-1,5
+1,5
@@
-## Test interpersing commands amidst magic words
-# Check for "Nothing happens." in game output indicat
u
ng sequence interrupt.
+## Test inter
s
persing commands amidst magic words
+# Check for "Nothing happens." in game output indicat
i
ng sequence interrupt.
no
seed 1318612053
e
no
seed 1318612053
e
diff --git
a/tests/pitfall.log
b/tests/pitfall.log
index 6c5adc7991589518aaa2a5943ed278a6e9471c55..65327131476394b803a0844b2d3c1ddc5d6d069b 100644
(file)
--- a/
tests/pitfall.log
+++ b/
tests/pitfall.log
@@
-1,5
+1,5
@@
## Death by pitfall
## Death by pitfall
-# Die 3 times so we can cover all the o
p
ituary messages
+# Die 3 times so we can cover all the o
b
ituary messages
n
seed 780351908
enter building
n
seed 780351908
enter building
diff --git
a/tests/saveresume.1.log
b/tests/saveresume.1.log
index 77a20ce0c4e538c2ce6f4e5c5c89b14ba5f7f8cc..45945ce4ff452fb41b5245f89c31d83208dd5417 100644
(file)
--- a/
tests/saveresume.1.log
+++ b/
tests/saveresume.1.log
@@
-1,5
+1,5
@@
## Save right after starting
## Save right after starting
-#NOCOMPARE Can't compare to a
s
vent430 due to version skew
+#NOCOMPARE Can't compare to a
d
vent430 due to version skew
n
seed 1240742801
save
n
seed 1240742801
save
diff --git
a/tests/saveresume.2.log
b/tests/saveresume.2.log
index 23dcc9eab6dd960d518dc662a726cae9b0719f6b..71db28c8174a56bb4fdae8c03b6ca9ade11f08f9 100644
(file)
--- a/
tests/saveresume.2.log
+++ b/
tests/saveresume.2.log
@@
-1,5
+1,5
@@
## Resume and then quit
## Resume and then quit
-#NOCOMPARE Can't compa
te to as
vent430 due to version skew
+#NOCOMPARE Can't compa
re to ad
vent430 due to version skew
n
in
resume
n
in
resume
diff --git
a/tests/savetamper.log
b/tests/savetamper.log
index f86e977c5abeb8a4142a85368b1fdd84ea4f330a..0396e998638563093076e12607345e8494e8cee0 100644
(file)
--- a/
tests/savetamper.log
+++ b/
tests/savetamper.log
@@
-1,5
+1,5
@@
## Resume from artificial "corrupted" save
## Resume from artificial "corrupted" save
-#NOCOMPARE Can't compare to a
s
vent430 due to version skew
+#NOCOMPARE Can't compare to a
d
vent430 due to version skew
n
resume
cheat_savetamper.adv
n
resume
cheat_savetamper.adv
diff --git
a/tests/weirdbird.log
b/tests/weirdbird.log
index 78ae7de7dc49b4eb07f9cbd8125a18c1cb12be68..37f4a368d053181c6cf159d6b8a7e741105de1ba 100644
(file)
--- a/
tests/weirdbird.log
+++ b/
tests/weirdbird.log
@@
-36,7
+36,7
@@
take bird
get rod
wave rod
attack bird
get rod
wave rod
attack bird
-# Also, test gra
r
e as a motion verb.
+# Also, test gra
t
e as a motion verb.
grate
up
n
grate
up
n