void make_test_one_alive_with_wrapping(int i, int j) { const auto n = 5; std::vector<bool> data(n*n, false); data[i * n + j] = true; const auto n_alive = cg::n_alive_neighbors(data, 4, 4, n); std::stringstream message; message << "(" << i << ", " << j << ")"; ASSERT_EQUAL_MSG(1, n_alive, message.str()); }
void Koan01_number_types::going_double_precision() { //???? double a_famous_double = 3.1415926535897932; ASSERT_EQUAL_MSG( a_famous_double, (double) 3.1415926535897932, "You know that number." ); }