From 5d8275c147ddae5e06fb80707bd40dd5e02b1d12 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 14 Jun 2017 06:02:42 -0400 Subject: [PATCH] Increase test coverage. --- tests/illformed.chk | 12 ++++++++++-- tests/illformed.log | 2 ++ tests/lockchain.chk | 21 ++++++++++++++++++++- tests/lockchain.log | 4 ++++ 4 files changed, 36 insertions(+), 3 deletions(-) diff --git a/tests/illformed.chk b/tests/illformed.chk index e633769..bbecd90 100644 --- a/tests/illformed.chk +++ b/tests/illformed.chk @@ -162,6 +162,14 @@ Thank you, it was delicious! I see no blood here. +> drink keys + +Don't be ridiculous! + +> light keys + +I'm afraid I don't understand. + > brief Okay, from now on I'll only describe a place in full the first time @@ -243,7 +251,7 @@ Okay, "BOO". > score -You have garnered 32 out of a possible 430 points, using 47 turns. +You have garnered 32 out of a possible 430 points, using 49 turns. > quit @@ -253,7 +261,7 @@ Do you really want to quit now? OK -You scored 32 out of a possible 430, using 48 turns. +You scored 32 out of a possible 430, using 50 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/illformed.log b/tests/illformed.log index 76ce746..a78672f 100644 --- a/tests/illformed.log +++ b/tests/illformed.log @@ -34,6 +34,8 @@ take keys throw keys eat food drink blood +drink keys +light keys brief on xyzzy diff --git a/tests/lockchain.chk b/tests/lockchain.chk index 53b1480..aa634e6 100644 --- a/tests/lockchain.chk +++ b/tests/lockchain.chk @@ -1679,8 +1679,27 @@ The chain is now unlocked. The chain is now locked. +> unlock chain + +The chain is now unlocked. + +> take bear + +OK + +> inven + +You are currently holding the following: +Set of keys +Brass lantern +Small bottle +Egg-sized emerald +Glistening pearl + +You are being followed by a very large, tame bear. + -You scored 239 out of a possible 430, using 290 turns. +You scored 239 out of a possible 430, using 293 turns. You may now consider yourself a "Seasoned Adventurer". diff --git a/tests/lockchain.log b/tests/lockchain.log index 36d472d..47b27c2 100644 --- a/tests/lockchain.log +++ b/tests/lockchain.log @@ -292,4 +292,8 @@ in feed bear take chain unlock chain +# Also tests message from bear in inventory lock chain +unlock chain +take bear +inven -- 2.31.1