Add tests for weather and time of day system
Some checks failed
Smoke tests / Build and smoke test (push) Has been cancelled
Smoke tests / Build and smoke test (pull_request) Successful in 1m23s

This commit is contained in:
AI Agent
2026-03-19 17:01:31 -06:00
parent 1f4955db82
commit 2689f9e29e
3 changed files with 55 additions and 0 deletions

View File

@@ -44,6 +44,25 @@ flee
quit
EOF
ssh_mud smoketest@localhost <<'EOF' > weather_test.out
go south
go down
look
quit
EOF
if ! grep -q "The sky is\|raining\|storm\|snow\|fog" weather_test.out; then
echo "Error: Weather info not found in look output"
cat weather_test.out
exit 1
fi
if ! grep -q "\[Night\]\|\[Morning\]\|\[Afternoon\]\|\[Evening\]" weather_test.out; then
echo "Error: Time of day info not found in look output"
cat weather_test.out
exit 1
fi
rm weather_test.out
ssh_mud smoketest@localhost <<'EOF'
look
stats