YAML coverage parser bug fixed -- handling \n
and \t
correctly
This commit is contained in:
parent
2ec9c7cc1a
commit
99595f6a2a
3 changed files with 3 additions and 6 deletions
|
@ -44,6 +44,8 @@ def search(needle, haystack):
|
||||||
# replacing %s, %d, etc. with regex wildcards, so the variable messages
|
# replacing %s, %d, etc. with regex wildcards, so the variable messages
|
||||||
# within the dungeon definition will actually match
|
# within the dungeon definition will actually match
|
||||||
needle = re.escape(needle) \
|
needle = re.escape(needle) \
|
||||||
|
.replace("\\n", "\n") \
|
||||||
|
.replace("\\t", "\t") \
|
||||||
.replace("\%S", ".*") \
|
.replace("\%S", ".*") \
|
||||||
.replace("\%s", ".*") \
|
.replace("\%s", ".*") \
|
||||||
.replace("\%d", ".*") \
|
.replace("\%d", ".*") \
|
||||||
|
|
|
@ -14,10 +14,6 @@ You're at sw end.
|
||||||
|
|
||||||
The grate is locked.
|
The grate is locked.
|
||||||
|
|
||||||
> yes
|
|
||||||
|
|
||||||
Guess again.
|
|
||||||
|
|
||||||
> blast
|
> blast
|
||||||
|
|
||||||
There is a loud explosion, and a twenty-foot hole appears in the far
|
There is a loud explosion, and a twenty-foot hole appears in the far
|
||||||
|
@ -25,7 +21,7 @@ wall, burying the dwarves in the rubble. You march through the hole
|
||||||
and find yourself in the main office, where a cheering band of
|
and find yourself in the main office, where a cheering band of
|
||||||
friendly elves carry the conquering adventurer off into the sunset.
|
friendly elves carry the conquering adventurer off into the sunset.
|
||||||
|
|
||||||
You scored 423 out of a possible 430, using 469 turns.
|
You scored 423 out of a possible 430, using 468 turns.
|
||||||
|
|
||||||
Your score puts you in Master Adventurer Class A.
|
Your score puts you in Master Adventurer Class A.
|
||||||
|
|
||||||
|
|
|
@ -4,5 +4,4 @@ n
|
||||||
resume
|
resume
|
||||||
y
|
y
|
||||||
saveresume_win.adv
|
saveresume_win.adv
|
||||||
yes
|
|
||||||
blast
|
blast
|
Loading…
Add table
Add a link
Reference in a new issue