IndependentFragmentGrids_IntegrationTest
Last change
on this file since e1e108 was 105b72, checked in by Frederik Heber <heber@…>, 12 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
|
Rev | Line | |
---|
[9e4fd1] | 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 |
|
---|
[765f16] | 15 | #include "Parser/PdbParser.hpp"
|
---|
[9e4fd1] | 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 );
|
---|
[105b72] | 24 | CPPUNIT_TEST ( printCoordinateTest );
|
---|
[9e4fd1] | 25 | CPPUNIT_TEST_SUITE_END();
|
---|
| 26 |
|
---|
| 27 | public:
|
---|
| 28 | void setUp();
|
---|
| 29 | void tearDown();
|
---|
| 30 |
|
---|
[105b72] | 31 | void printCoordinateTest();
|
---|
[9e4fd1] | 32 | void readwritePdbTest();
|
---|
[765f16] | 33 |
|
---|
| 34 | private:
|
---|
| 35 | FormatParser<pdb> *parser;
|
---|
[9e4fd1] | 36 | };
|
---|
| 37 |
|
---|
| 38 | #endif /* PARSERPDBUNITTEST_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.