mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 04:15:45 -08:00
Remove tests and alternative Python implementations
Ad discussed here: https://github.com/coding-horror/basic-computer-games/issues/548#issuecomment-1081008471
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
import io
|
||||
|
||||
from _pytest.monkeypatch import MonkeyPatch
|
||||
|
||||
from bombs_away import play_game
|
||||
|
||||
|
||||
def test_bombs_away(monkeypatch: MonkeyPatch) -> None:
|
||||
side = 1
|
||||
target = 1
|
||||
missions = 1
|
||||
monkeypatch.setattr(
|
||||
"sys.stdin",
|
||||
io.StringIO(f"{side}\n{target}\n{missions}\n3\n50"),
|
||||
)
|
||||
play_game()
|
||||
Reference in New Issue
Block a user