add test survive 3
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user