From 4a2d6fb17a5047294af66482ca3765d926f605ed Mon Sep 17 00:00:00 2001 From: kai Date: Sat, 14 Jun 2025 13:33:51 +0200 Subject: [PATCH] add edgecase game --- lab11/game_of_life/test.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lab11/game_of_life/test.cpp b/lab11/game_of_life/test.cpp index f837f69..589f494 100644 --- a/lab11/game_of_life/test.cpp +++ b/lab11/game_of_life/test.cpp @@ -45,4 +45,13 @@ TEST(test_reproduction) { check(end(1, 1), 1); } +TEST(test_survive_edge) { + Matrix start = Matrix::zeros(10); + start(0, 0) = 1; + start(9, 0) = 1; + start(0, 9) = 1; + Matrix end = init_step(start); + check(end(0, 0), 1); +} + int main() { return 0; }