Action_Thermostats
        Adding_MD_integration_tests
        Adding_StructOpt_integration_tests
        AutomationFragmentation_failures
        Candidate_v1.6.1
        Candidate_v1.7.0
        ChemicalSpaceEvaluator
        Enhanced_StructuralOptimization
        Enhanced_StructuralOptimization_continued
        Exclude_Hydrogens_annealWithBondGraph
        Fix_Verbose_Codepatterns
        ForceAnnealing_with_BondGraph
        ForceAnnealing_with_BondGraph_continued
        ForceAnnealing_with_BondGraph_continued_betteresults
        ForceAnnealing_with_BondGraph_contraction-expansion
        Gui_displays_atomic_force_velocity
        JobMarket_RobustOnKillsSegFaults
        JobMarket_StableWorkerPool
        PythonUI_with_named_parameters
        Recreated_GuiChecks
        StoppableMakroAction
        TremoloParser_IncreasedPrecision
        stable
      
      
        
          | Last change
 on this file since b10593 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 | 
      
      
| 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.