add test survive 3

This commit is contained in:
kai
2025-06-15 13:27:09 +02:00
parent e5e220be60
commit 0b8075399c

View File

@@ -16,7 +16,7 @@ TEST(test_underpopulation) {
check(end(0, 0), 0);
}
TEST(test_survive) {
TEST(test_survive_2) {
Matrix start = Matrix::zeros(10);
start(0, 0) = 1;
start(0, 1) = 1;
@@ -25,6 +25,16 @@ TEST(test_survive) {
check(end(0, 0), 1);
}
TEST(test_survive_3) {
Matrix start = Matrix::zeros(10);
start(0, 0) = 1;
start(1, 1) = 1;
start(0, 1) = 1;
start(1, 0) = 1;
Matrix end = init_step(start);
check(end(0, 0), 1);
}
TEST(test_overpopulation) {
Matrix start = Matrix::zeros(10);
start(1, 1) = 1;