void PartRepository::declare_part_relation( Part & root_part, PartRelation relation, Part & target_part ) { static const char method[] = "stk::mesh::PartRepository::declare_part_relation" ; assert_not_same( root_part , method , target_part ); assert_same_universe( root_part, method, target_part ); assert_same( root_part, method, *relation.m_root ); assert_same( target_part, method, *relation.m_target ); root_part.m_partImpl.add_relation( relation ); target_part.m_partImpl.add_relation( relation ); }
void test_that_passes() { int expected = 1; int result = return_parameter(1); /* Uses byte per byte comparation. Works with all primitive types and with structs (will compare eventual pointers in it */ assert_same("This test should never fail.", expected, result); }