test/test.cpp
/**
 * @brief Test for checking nodes class implementation
 * @section DESCRIPTION Used ASSERT macro instead of EXPECT because 
 *          if there is a failure in initialization tests the test
 *          execution should abort
 */
@brief Test for checking nodes class implementation
@section DESCRIPTION Used ASSERT macro instead of EXPECT because
if there is a failure in initialization tests the test
execution should abort
@brief Test for checking nodes class implementation @section DESCRIPTION Used ASSERT macro instead of EXPECT because if there is a failure in initialization tests the test execution should abort
TEST(nodesTest, methodTesting) {
  nodes node1;
  ASSERT_EQ(node1.x_, 0);
  nodes node2(1, 1, 0, 0);
  ASSERT_EQ(node2.f_cost_, 0);
  int i = 0;
  ASSERT_EQ(node2.compute_g(i), 1);
  ASSERT_DOUBLE_EQ(node2.compute_h(1, 1), 0.0);
  ASSERT_DOUBLE_EQ(node2.compute_f(1, 1), 1.0);
}
TEST ( nodesTest , methodTesting ) { nodes node1 ; ASSERT_EQ ( node1 . x_ , 0 ) ; nodes node2 ( 1 , 1 , 0 , 0 ) ; ASSERT_EQ ( node2 . f_cost_ , 0 ) ; int i = 0 ; ASSERT_EQ ( node2 . compute_g ( i ) , 1 ) ; ASSERT_DOUBLE_EQ ( node2 . compute_h ( 1 , 1 ) , 0.0 ) ; ASSERT_DOUBLE_EQ ( node2 . compute_f ( 1 , 1 ) , 1.0 ) ; }
@brief Test for checking nodes class implementation
 @section DESCRIPTION Used ASSERT macro instead of EXPECT because
          if there is a failure in initialization tests the test
          execution should abort
@brief Test for checking nodes class implementation @section DESCRIPTION Used ASSERT macro instead of EXPECT because if there is a failure in initialization tests the test execution should abort