Changeset 4eee8f for molecuilder/src/unittests/vectorunittest.cpp
- Timestamp:
- Apr 30, 2010, 10:07:23 AM (16 years ago)
- Children:
- 59e7832
- Parents:
- f70c2a
- File:
-
- 1 edited
-
molecuilder/src/unittests/vectorunittest.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/vectorunittest.cpp
rf70c2a r4eee8f 159 159 void VectorTest::EuclidianDistancesTest() 160 160 { 161 CPPUNIT_ASSERT_EQUAL( 1., zero. Distance(unit) );162 CPPUNIT_ASSERT_EQUAL( sqrt(2.), otherunit. Distance(unit) );163 CPPUNIT_ASSERT_EQUAL( sqrt(2.), zero. Distance(notunit) );164 CPPUNIT_ASSERT_EQUAL( 1., otherunit. Distance(notunit) );165 CPPUNIT_ASSERT_EQUAL( sqrt(5.), two. Distance(notunit) );161 CPPUNIT_ASSERT_EQUAL( 1., zero.distance(unit) ); 162 CPPUNIT_ASSERT_EQUAL( sqrt(2.), otherunit.distance(unit) ); 163 CPPUNIT_ASSERT_EQUAL( sqrt(2.), zero.distance(notunit) ); 164 CPPUNIT_ASSERT_EQUAL( 1., otherunit.distance(notunit) ); 165 CPPUNIT_ASSERT_EQUAL( sqrt(5.), two.distance(notunit) ); 166 166 } 167 167
Note:
See TracChangeset
for help on using the changeset viewer.
