From 1a95dba3b64cfeb3ed23cddbff11483158a71988 Mon Sep 17 00:00:00 2001 From: Nikita Antonenkov Date: Mon, 12 Oct 2026 23:07:41 +0300 Subject: [PATCH] Added tests for Game of Life exercise --- .../game-of-life/test/game_of_life_test.clj | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/exercises/practice/game-of-life/test/game_of_life_test.clj b/exercises/practice/game-of-life/test/game_of_life_test.clj index 47a822698..4e89c123b 100644 --- a/exercises/practice/game-of-life/test/game_of_life_test.clj +++ b/exercises/practice/game-of-life/test/game_of_life_test.clj @@ -95,3 +95,20 @@ [1 1 0 0 0 1 1 1] [0 0 1 0 1 0 0 1] [1 0 0 0 0 0 1 1]]))))) + +(deftest tick_test_9 + (testing "Non-square matrix" + (is (= [[0 1 1] + [0 1 1]] + (game-of-life/tick [[0 0 1] + [0 1 1]]))))) + +(deftest tick_test_10 + (testing "Non-square matrix 2" + (is (= [[0 0] + [1 1] + [0 0]] + (game-of-life/tick [[0 1] + [0 1] + [0 1]]))))) +