diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2020-03-03 18:43:19 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2020-03-03 18:43:19 +0000 |
| commit | 63a8992d5647376f56a8a012d8c9296e21b3790e (patch) | |
| tree | a255df3fe39f5961babb3992c000e8733f8da356 /test/unit | |
| parent | 2ed04de712cfcca43e1bdb952117909f91d1f08d (diff) | |
| download | PROJ-63a8992d5647376f56a8a012d8c9296e21b3790e.tar.gz PROJ-63a8992d5647376f56a8a012d8c9296e21b3790e.zip | |
createUnitOfMeasure(): use full double resolution for the conversion factor
Diffstat (limited to 'test/unit')
| -rw-r--r-- | test/unit/test_factory.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp index 5cf45d1a..15e91f22 100644 --- a/test/unit/test_factory.cpp +++ b/test/unit/test_factory.cpp @@ -95,6 +95,14 @@ TEST(factory, AuthorityFactory_createUnitOfMeasure_linear) { // --------------------------------------------------------------------------- +TEST(factory, AuthorityFactory_createUnitOfMeasure_linear_us_survey_foot) { + auto factory = AuthorityFactory::create(DatabaseContext::create(), "EPSG"); + auto uom = factory->createUnitOfMeasure("9003"); + EXPECT_EQ(uom->conversionToSI(), 12. / 39.37); +} + +// --------------------------------------------------------------------------- + TEST(factory, AuthorityFactory_createUnitOfMeasure_angular) { auto factory = AuthorityFactory::create(DatabaseContext::create(), "EPSG"); auto uom = factory->createUnitOfMeasure("9102"); |
