From 2bcad909ea364d03130564213d16f2b08ff74fe6 Mon Sep 17 00:00:00 2001 From: program-- Date: Wed, 12 Jul 2023 13:44:21 -0700 Subject: [PATCH] rev: change literal byte keys for clarity changes per https://github.com/NOAA-OWP/ngen/pull/522#discussion_r1260138439 and https://github.com/NOAA-OWP/ngen/pull/522#discussion_r1260197844 Co-authored-by: Phil Miller - NOAA --- test/geopackage/WKB_Test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/geopackage/WKB_Test.cpp b/test/geopackage/WKB_Test.cpp index 13d2819c80..74bcdbf1fb 100644 --- a/test/geopackage/WKB_Test.cpp +++ b/test/geopackage/WKB_Test.cpp @@ -13,14 +13,14 @@ class WKB_Test : public ::testing::Test ~WKB_Test() override {} void SetUp() override { - this->wkb_bytes["point"] = { + this->wkb_bytes["point_little_endian"] = { 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x40 }; - this->wkb_bytes["point_big"] = { + this->wkb_bytes["point_big_endian"] = { 0x00, 0x00, 0x00, 0x00, 0x01, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -145,8 +145,8 @@ class WKB_Test : public ::testing::Test TEST_F(WKB_Test, wkb_point_test) // also tests endianness { - const auto geom_big = boost::get(wkb::read(this->wkb_bytes["point_big"])); - const auto geom_little = boost::get(wkb::read(this->wkb_bytes["point"])); + const auto geom_big = boost::get(wkb::read(this->wkb_bytes["point_big_endian"])); + const auto geom_little = boost::get(wkb::read(this->wkb_bytes["point_little_endian"])); EXPECT_NEAR(geom_big.get<0>(), geom_little.get<0>(), 1e-6); EXPECT_NEAR(geom_big.get<1>(), geom_little.get<1>(), 1e-6); EXPECT_NEAR(geom_big.get<0>(), 2.0, 1e-6);