Revision e4858085
Added by Andreas Müller over 12 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/parser/location/CoordinateConverterTest.java | ||
---|---|---|
80 | 80 |
conversionResults = coordinateConverter.tryConvert("35\u00B011'34.744SW"); |
81 | 81 |
Assert.assertTrue("Western must be longitude", conversionResults.isLongitude); |
82 | 82 |
|
83 |
conversionResults = coordinateConverter.tryConvert("35\u00B0 1'34.744SW"); |
|
84 |
Assert.assertTrue("Pattern with whitespace must be recognised", conversionResults.patternRecognised); |
|
85 |
Assert.assertTrue("Pattern with whitespace must be recognised", conversionResults.conversionSuccessful); |
|
86 |
|
|
83 | 87 |
conversionResults = coordinateConverter.tryConvert("35D11M34.744S"); |
84 | 88 |
Assert.assertNull("isLongitude must be undefined. S stands for second.", conversionResults.isLongitude); |
85 | 89 |
|
Also available in: Unified diff
bugfix for Coordinate Parser with whitespaces