From b1fd5a1fe5ae9d7790928b3094c007d9303c3e40 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 16 Aug 2023 06:01:09 -0400 Subject: [PATCH] Add more tests to fill coverage gaps. --- test/test22.chk | 32 ++++++++++++++++++++++ test/test22.log | 8 ++++++ test/test23.chk | 38 +++++++++++++++++++++++++++ test/test23.log | 10 +++++++ test/test24.chk | 32 ++++++++++++++++++++++ test/test24.log | 9 +++++++ test/test25.chk | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ test/test25.log | 12 +++++++++ test/test26.chk | 27 +++++++++++++++++++ test/test26.log | 7 +++++ test/test27.chk | 48 +++++++++++++++++++++++++++++++++ test/test27.log | 7 +++++ 12 files changed, 300 insertions(+) create mode 100644 test/test22.chk create mode 100644 test/test22.log create mode 100644 test/test23.chk create mode 100644 test/test23.log create mode 100644 test/test24.chk create mode 100644 test/test24.log create mode 100644 test/test25.chk create mode 100644 test/test25.log create mode 100644 test/test26.chk create mode 100644 test/test26.log create mode 100644 test/test27.chk create mode 100644 test/test27.log diff --git a/test/test22.chk b/test/test22.chk new file mode 100644 index 0000000..f9077fd --- /dev/null +++ b/test/test22.chk @@ -0,0 +1,32 @@ + + +-SUPER- STAR TREK + + + +It is stardate 2183. The Federation is being attacked by +a deadly Klingon invasion force. As captain of the United +Starship U.S.S. Enterprise, it is your mission to seek out +and destroy this invasion force of 9 battle cruisers. +You have an initial allotment of 14 stardates to complete +your mission. As you proceed you may be given more time. + +You will have 2 supporting starbases. +Starbase locations- d2 h1 + +The Enterprise is currently in Quadrant e4 Sector c9 + +Good Luck! +COMMAND> # SST2K version 2.7 +# Test torpedoing uninhabited planet +# recorded by esr@snark.thyrsus.com on Wed Aug 16 05:18:31 2023 +m a i9 + +COMMAND> torpedo 1 i5 + +Torpedo track- i8 i7 i6 +i5 +***Planet at Sector i5 destroyed. +COMMAND> quit + +May the Great Bird of the Galaxy roost upon your home planet. diff --git a/test/test22.log b/test/test22.log new file mode 100644 index 0000000..bfaaea4 --- /dev/null +++ b/test/test22.log @@ -0,0 +1,8 @@ +# seed 1692177511 +# arguments regular medium novice fancy +# SST2K version 2.7 +# Test torpedoing uninhabited planet +# recorded by esr@snark.thyrsus.com on Wed Aug 16 05:18:31 2023 +m a i9 +torpedo 1 i5 +quit diff --git a/test/test23.chk b/test/test23.chk new file mode 100644 index 0000000..5cc15c0 --- /dev/null +++ b/test/test23.chk @@ -0,0 +1,38 @@ + + +-SUPER- STAR TREK + + + +It is stardate 4956. The Federation is being attacked by +a deadly Klingon invasion force. As captain of the United +Starship U.S.S. Enterprise, it is your mission to seek out +and destroy this invasion force of 7 battle cruisers. +You have an initial allotment of 14 stardates to complete +your mission. As you proceed you may be given more time. + +You will have 3 supporting starbases. +Starbase locations- g2 b2 b3 + +The Enterprise is currently in Quadrant b2 Sector e9 + +Good Luck! +COMMAND> # SST2K version 2.7 +# Test torpedoing inhabited planet and starbase +# recorded by esr@snark.thyrsus.com on Wed Aug 16 05:21:16 2023 +m a c0 + +Beg your pardon, Captain? +COMMAND> m a c9 + +COMMAND> torpedo 1 c 2 + +Beg your pardon, Captain? +COMMAND> torpedo 1 f10 + +Torpedo track- d9 e10 f10 + +***STARBASE DESTROYED.. +COMMAND> quit + +May the Great Bird of the Galaxy roost upon your home planet. diff --git a/test/test23.log b/test/test23.log new file mode 100644 index 0000000..1e31129 --- /dev/null +++ b/test/test23.log @@ -0,0 +1,10 @@ +# seed 1692177676 +# arguments regular medium novice fancy +# SST2K version 2.7 +# Test torpedoing inhabited planet and starbase +# recorded by esr@snark.thyrsus.com on Wed Aug 16 05:21:16 2023 +m a c0 +m a c9 +torpedo 1 c 2 +torpedo 1 f10 +quit diff --git a/test/test24.chk b/test/test24.chk new file mode 100644 index 0000000..f9d23a1 --- /dev/null +++ b/test/test24.chk @@ -0,0 +1,32 @@ + + +-SUPER- STAR TREK + + + +It is stardate 2588. The Federation is being attacked by +a deadly Klingon invasion force. As captain of the United +Starship U.S.S. Enterprise, it is your mission to seek out +and destroy this invasion force of 6 battle cruisers. +You have an initial allotment of 14 stardates to complete +your mission. As you proceed you may be given more time. + +You will have 3 supporting starbases. +Starbase locations- g4 f3 d7 + +The Enterprise is currently in Quadrant h6 Sector a6 + +Good Luck! +COMMAND> # SST2K version 2.7 +# Test cloaking device with no enemies present +# recorded by esr@snark.thyrsus.com on Wed Aug 16 05:24:35 2023 +cloak +Switch cloaking device on? y +Spock- "Captain, using the cloaking device is a violation + of the Treaty of Algeron. Considering the alternatives, + are you sure this is wise? y +Engineer Scott- "Cloaking device has engaging, Sir..." +Engineer Scott- "Cloaking device has engaged, Sir." +COMMAND> quit + +May the Great Bird of the Galaxy roost upon your home planet. diff --git a/test/test24.log b/test/test24.log new file mode 100644 index 0000000..a6f7cb8 --- /dev/null +++ b/test/test24.log @@ -0,0 +1,9 @@ +# seed 1692177875 +# arguments regular medium novice fancy +# SST2K version 2.7 +# Test cloaking device with no enemies present +# recorded by esr@snark.thyrsus.com on Wed Aug 16 05:24:35 2023 +cloak +y +y +quit diff --git a/test/test25.chk b/test/test25.chk new file mode 100644 index 0000000..e02673d --- /dev/null +++ b/test/test25.chk @@ -0,0 +1,70 @@ + + +-SUPER- STAR TREK + + + +It is stardate 2116. The Federation is being attacked by +a deadly Klingon invasion force. As captain of the United +Starship U.S.S. Enterprise, it is your mission to seek out +and destroy this invasion force of 7 battle cruisers. +You have an initial allotment of 14 stardates to complete +your mission. As you proceed you may be given more time. + +You will have 4 supporting starbases. +Starbase locations- d8 b6 f3 f2 + +The Enterprise is currently in Quadrant a2 Sector g9 + +Good Luck! +COMMAND> # SST2K version 2.7 +# Test use of death ray (successful) +# recorded by esr@snark.thyrsus.com on Wed Aug 16 05:26:11 2023 +m a d1 + +COMMAND> sh up +Shields raised. +COMMAND> chart + STAR CHART FOR THE KNOWN GALAXY + 1 2 3 4 5 6 7 8 +a | 102 <..8> ..1 ... ... ... ... ... | +b | ..8 ..3 ..5 ... ... .1. ... ... | +c | ... ... ... ... ... ... ... ... | +d | ... ... ... ... ... ... ... .1. | +e | ... ... ... ... ... ... ... ... | +f | ... .1. .1. ... ... ... ... ... | +g | ... ... ... ... ... ... ... ... | +h | ... ... ... ... ... ... ... ... | + +COMMAND> m a a1 d10 + +Ensign Chekov- "Course laid in, Captain." + +Entering Quadrant a1. + +Enemy attack reduces shield strength to 95%, torpedoes left 10 +COMMAND> deathray + +Spock- "Captain, the 'Experimental Death Ray' + is highly unpredictible. Considering the alternatives, + are you sure this is wise?" y +Spock- "Acknowledged." + +WHOOEE ... WHOOEE ... WHOOEE ... WHOOEE +Crew scrambles in emergency preparation. +Spock and Scotty ready the death ray and +prepare to channel all ship's power to the device. + +Spock- "Preparations complete, sir." +Kirk- "Engage!" + +WHIRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR +Sulu- "Captain! It's working!" + +***Klingon at Sector a6 destroyed. +Ensign Chekov- "Congratulations, Captain!" +Spock- "Captain, I believe the `Experimental Death Ray' + has been rendered nonfunctional." +COMMAND> quit + +May the Great Bird of the Galaxy roost upon your home planet. diff --git a/test/test25.log b/test/test25.log new file mode 100644 index 0000000..a8e42aa --- /dev/null +++ b/test/test25.log @@ -0,0 +1,12 @@ +# seed 1692177971 +# arguments regular medium novice fancy +# SST2K version 2.7 +# Test use of death ray (successful) +# recorded by esr@snark.thyrsus.com on Wed Aug 16 05:26:11 2023 +m a d1 +sh up +chart +m a a1 d10 +deathray +y +quit diff --git a/test/test26.chk b/test/test26.chk new file mode 100644 index 0000000..4cfe3b2 --- /dev/null +++ b/test/test26.chk @@ -0,0 +1,27 @@ + + +-SUPER- STAR TREK + + + +It is stardate 4779. The Federation is being attacked by +a deadly Klingon invasion force. As captain of the United +Starship U.S.S. Enterprise, it is your mission to seek out +and destroy this invasion force of 10 battle cruisers. +You have an initial allotment of 14 stardates to complete +your mission. As you proceed you may be given more time. + +You will have 2 supporting starbases. +Starbase locations- g4 g7 + +The Enterprise is currently in Quadrant c1 Sector g6 + +Good Luck! +COMMAND> # SST2K version 2.7 +# Test damage-report command (no damage) +# recorded by esr@snark.thyrsus.com on Wed Aug 16 05:29:51 2023 +damage +All devices functional. +COMMAND> quit + +May the Great Bird of the Galaxy roost upon your home planet. diff --git a/test/test26.log b/test/test26.log new file mode 100644 index 0000000..dff532b --- /dev/null +++ b/test/test26.log @@ -0,0 +1,7 @@ +# seed 1692178191 +# arguments regular medium novice fancy +# SST2K version 2.7 +# Test damage-report command (no damage) +# recorded by esr@snark.thyrsus.com on Wed Aug 16 05:29:51 2023 +damage +quit diff --git a/test/test27.chk b/test/test27.chk new file mode 100644 index 0000000..a4b78af --- /dev/null +++ b/test/test27.chk @@ -0,0 +1,48 @@ + + +-SUPER- STAR TREK + + + +It is stardate 3804. The Federation is being attacked by +a deadly Klingon invasion force. As captain of the United +Starship U.S.S. Enterprise, it is your mission to seek out +and destroy this invasion force of 9 battle cruisers. +You have an initial allotment of 14 stardates to complete +your mission. As you proceed you may be given more time. + +You will have 3 supporting starbases. +Starbase locations- c2 a8 c6 + +The Enterprise is currently in Quadrant c7 Sector e7 + +Good Luck! + +LT. Uhura- "Captain, an urgent message. + I'll put it on audio." CLICK + +INTRUDER! YOU HAVE VIOLATED THE ROMULAN NEUTRAL ZONE. +LEAVE AT ONCE, OR YOU WILL BE DESTROYED! +COMMAND> # SST2K version 2.7 +# Test simple collision and damage treport. +# recorded by esr@snark.thyrsus.com on Wed Aug 16 05:35:40 2023 +m a j7 + +***RED ALERT! RED ALERT! +***COLLISION IMMINENT. + + +***Enterprise rams Romulan at Sector j7 +***Romulan at Sector i7 destroyed. +***Enterprise heavily damaged. +***Sickbay reports 20 casualties +***Shields are down. + +[ANNOUNCEMENT ARRIVING...] +DEVICE REPAIR TIMES + IN FLIGHT DOCKED + Transporter 11.63 2.90 +Collision detected +COMMAND> quit + +May the Great Bird of the Galaxy roost upon your home planet. diff --git a/test/test27.log b/test/test27.log new file mode 100644 index 0000000..2ca1bd1 --- /dev/null +++ b/test/test27.log @@ -0,0 +1,7 @@ +# seed 1692178540 +# arguments regular medium novice fancy +# SST2K version 2.7 +# Test simple collision and damage treport. +# recorded by esr@snark.thyrsus.com on Wed Aug 16 05:35:40 2023 +m a j7 +quit -- 2.31.1