Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
revert ptoolstest.h to bc9551..
Browse files Browse the repository at this point in the history
  • Loading branch information
charlestonchas committed Jul 28, 2017
1 parent 81798e0 commit 287fdd1
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Tests/cpp/ptoolstest.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Coord3D coo1, coo2, coo3;
coo2 = Coord3D(1.0, 2.0, 7.5);
}

void test_plus_operator()
void testPlusOperator()
{
coo3 = coo1 + coo2 ;
TS_ASSERT_EQUALS(coo3.x, 4.0);
Expand All @@ -33,14 +33,14 @@ Coord3D coo1, coo2, coo3;
}


void test_minus_operator(){
void testMinusOperator(){
coo3 = coo1 - coo2;
TS_ASSERT_EQUALS(coo3.x, 2.0);
TS_ASSERT_EQUALS(coo3.y, 2.0);
TS_ASSERT_EQUALS(coo3.z, -2.5);
}

void test_plus_equal_operator()
void testPlusEqualOperator()
{
coo3 = Coord3D(coo1);
coo3 += coo2;
Expand All @@ -62,21 +62,21 @@ Coord3D A, B;



void seuUp()
void setUp()
{
r = Rigidbody(TEST_1FIN_R_PDB);
}


void test_copy()
void testCopy()
{
s = Rigidbody(r);
TS_ASSERT_EQUALS(s.size(), r.size())
TS_ASSERT_EQUALS(r.find_center(), s.find_center());
}


void test_size()
void testsize()
{ TS_ASSERT_EQUALS(r.size(), 2365);
}

Expand All @@ -92,7 +92,7 @@ Coord3D A, B;
}


void test_unsafe_get_coords()
void testUnsafeget_coords()
{
// """in principle get_coords(i,co) and unsafeget_coords(i,co) should
// lead to the exact same coordinates if a sync has been done before
Expand Down Expand Up @@ -134,15 +134,15 @@ Rigidbody rigid1, rigid2, rigid3;
rigid3=Rigidbody(rigid2);
}

void test_basic_rmsd()
void testBasicrmsd()
{
Rigidbody rigtmp(rigid1);
TS_ASSERT_EQUALS(rmsd(rigid1, rigid1), 0.0);
rigid1.translate(Coord3D(4,0,0));
TS_ASSERT_EQUALS(rmsd(rigtmp, rigid1), 4);
}

void test_translation1()
void testTranslation1()
{
Coord3D CoM1 = rigid1.find_center() ;
rigid1.translate(Coord3D(3.0, -55.67, 1));
Expand All @@ -153,7 +153,7 @@ Rigidbody rigid1, rigid2, rigid3;
TS_ASSERT(rmsd(rigid1, rigid2) < 1e-6);
}

void test_translation2(){
void testTranslation2(){
Coord3D vec1 = Coord3D (-123.54, 45.62, -99.003);
Coord3D vec2 = Coord3D (36.3125, 2.78, -36.378);
rigid2.translate(vec1+vec2);
Expand Down Expand Up @@ -189,14 +189,14 @@ class TestCoordsArray: public CxxTest::TestSuite
TS_ASSERT(c.size() == 2);
}

void test_get_atom()
void testGetAtom()
{
Coord3D c1 ;
c.get_coords(0, c1);
TS_ASSERT( Norm2(c1 - Coord3D(3.0, 4.0, 5.0))<1e-6 );
}

void test_basic_translation()
void testBasicTranslation()
{
c.translate(tr);
Coord3D c1;
Expand Down Expand Up @@ -263,7 +263,7 @@ Rigidbody prot1;
random.seed(123);
}

void test_trans_rot()
void testTransRot()
{
double x,y,z,a,b,c;

Expand Down Expand Up @@ -320,7 +320,7 @@ class TestRot: public CxxTest::TestSuite


public:
void test_trans_rot()
void testTransRot()
{

srand(time(NULL));
Expand All @@ -347,7 +347,7 @@ class TestRot: public CxxTest::TestSuite
}

}
void test_vissage()
void testVissage()
{

for(int i=0; i<1000; i++)
Expand Down

0 comments on commit 287fdd1

Please sign in to comment.