ForceAnnealing_oldresults
IndependentFragmentGrids_IntegrationTest
|
Last change
on this file since ef8667 was 105b72, checked in by Frederik Heber <heber@…>, 13 years ago |
|
FIX: PdbParser skipped when coordinate exceeded 9999.999.
- the problem is that with fixed, setprecision controls the digits after the
dot only and it is not possible to get the desired behavior with a
combination of setfill, setw, and setprecision alone. Hence, we wrote our
own static printCoordinate() helper for that.
- Added regression test for printCoordinate() to ParserPdbUnitTest.
|
-
Property mode
set to
100644
|
|
File size:
703 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * ParserPdbUnitTest.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Mar 3, 2010
|
|---|
| 5 | * Author: metzler
|
|---|
| 6 | */
|
|---|
| 7 | #ifndef PARSERPDBUNITTEST_HPP_
|
|---|
| 8 | #define PARSERPDBUNITTEST_HPP_
|
|---|
| 9 |
|
|---|
| 10 | // include config.h
|
|---|
| 11 | #ifdef HAVE_CONFIG_H
|
|---|
| 12 | #include <config.h>
|
|---|
| 13 | #endif
|
|---|
| 14 |
|
|---|
| 15 | #include "Parser/PdbParser.hpp"
|
|---|
| 16 |
|
|---|
| 17 | #include <cppunit/extensions/HelperMacros.h>
|
|---|
| 18 | #include <string>
|
|---|
| 19 |
|
|---|
| 20 | class ParserPdbUnitTest : public CppUnit::TestFixture
|
|---|
| 21 | {
|
|---|
| 22 | CPPUNIT_TEST_SUITE( ParserPdbUnitTest ) ;
|
|---|
| 23 | CPPUNIT_TEST ( readwritePdbTest );
|
|---|
| 24 | CPPUNIT_TEST ( printCoordinateTest );
|
|---|
| 25 | CPPUNIT_TEST_SUITE_END();
|
|---|
| 26 |
|
|---|
| 27 | public:
|
|---|
| 28 | void setUp();
|
|---|
| 29 | void tearDown();
|
|---|
| 30 |
|
|---|
| 31 | void printCoordinateTest();
|
|---|
| 32 | void readwritePdbTest();
|
|---|
| 33 |
|
|---|
| 34 | private:
|
|---|
| 35 | FormatParser<pdb> *parser;
|
|---|
| 36 | };
|
|---|
| 37 |
|
|---|
| 38 | #endif /* PARSERPDBUNITTEST_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.