Ignore:
Timestamp:
Apr 30, 2010, 10:07:23 AM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
59e7832
Parents:
f70c2a
Message:

Declared the Vector class as single point spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/unittests/vectorunittest.cpp

    rf70c2a r4eee8f  
    159159void VectorTest::EuclidianDistancesTest()
    160160{
    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) );
    166166}
    167167
Note: See TracChangeset for help on using the changeset viewer.