Changeset 2704e2 for molecuilder/src/unittests
- Timestamp:
- Mar 30, 2010, 1:22:20 PM (15 years ago)
- Children:
- 0f7883
- Parents:
- fd9d77
- Location:
- molecuilder/src/unittests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/Makefile.am
rfd9d77 r2704e2 55 55 bondgraphunittest.cpp \ 56 56 CacheableTest.cpp \ 57 DescriptorUnittest.cpp \58 57 gslmatrixsymmetricunittest.cpp \ 59 58 gslmatrixunittest.cpp \ -
molecuilder/src/unittests/ParserUnitTest.cpp
rfd9d77 r2704e2 13 13 14 14 #include "Parser/XyzParser.hpp" 15 #include "Parser/TremoloParser.hpp" 15 16 #include "World.hpp" 16 17 #include "element.hpp" … … 45 46 46 47 void ParserUnitTest::rewriteAnXyzTest() { 48 cout << "Testing the XYZ parser." << endl; 47 49 XyzParser* testParser = new XyzParser(); 48 50 string waterXyz = "3\nH2O: water molecule\nO\t0.000000\t0.000000\t0.000000\nH\t0.758602\t0.000000\t0.504284\nH\t0.758602\t0.000000\t-0.504284\n"; … … 61 63 } 62 64 65 void ParserUnitTest::rewriteTremoloTest() { 66 cout << "Testing the tremolo parser." << endl; 67 TremoloParser* testParser = new TremoloParser(); 68 string waterTremolo = "#\n# ATOMDATA Id name Type x=3\n\n\n"; 69 stringstream input; 70 input << waterTremolo; 71 testParser->load(&input); 72 waterTremolo = "#\n#ATOMDATA Id name Type x=3\n1 H hydrogen 3.0 4.5 0.1\n\n"; 73 input.clear(); 74 input << waterTremolo; 75 testParser->load(&input); 76 cout << "testing the tremolo parser is done" << endl; 77 } -
molecuilder/src/unittests/ParserUnitTest.hpp
rfd9d77 r2704e2 15 15 CPPUNIT_TEST_SUITE( ParserUnitTest ) ; 16 16 CPPUNIT_TEST ( rewriteAnXyzTest ); 17 CPPUNIT_TEST ( rewriteTremoloTest ); 17 18 CPPUNIT_TEST_SUITE_END(); 18 19 … … 22 23 23 24 void rewriteAnXyzTest(); 25 void rewriteTremoloTest(); 24 26 }; 25 27
Note:
See TracChangeset
for help on using the changeset viewer.