summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/map/map.test.cpp2
-rw-r--r--test/sprite/sprite_loader.test.cpp2
-rw-r--r--test/sprite/sprite_parser.test.cpp2
-rw-r--r--test/style/source.test.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/map/map.test.cpp b/test/map/map.test.cpp
index 3af2acdb8b..b5b2c77428 100644
--- a/test/map/map.test.cpp
+++ b/test/map/map.test.cpp
@@ -373,7 +373,7 @@ TEST(Map, SetStyleInvalidJSON) {
auto observer = Log::removeObserver();
auto flo = static_cast<FixtureLogObserver*>(observer.get());
EXPECT_EQ(1u, flo->count({ EventSeverity::Error, Event::ParseStyle, -1,
- "Failed to parse style: Invalid value. at offset 0" }));
+ "Failed to parse style on line 1 col 0: Invalid value." }));
auto unchecked = flo->unchecked();
EXPECT_TRUE(unchecked.empty()) << unchecked;
}
diff --git a/test/sprite/sprite_loader.test.cpp b/test/sprite/sprite_loader.test.cpp
index 3691572265..a5d4a56e6d 100644
--- a/test/sprite/sprite_loader.test.cpp
+++ b/test/sprite/sprite_loader.test.cpp
@@ -140,7 +140,7 @@ TEST(SpriteLoader, JSONLoadingCorrupted) {
test.observer.spriteError = [&] (std::exception_ptr error) {
EXPECT_TRUE(error != nullptr);
- EXPECT_EQ("Failed to parse JSON: Invalid value. at offset 0", util::toString(error));
+ EXPECT_EQ("Failed to parse JSON on line 1 col 0: Invalid value.", util::toString(error));
test.end();
};
diff --git a/test/sprite/sprite_parser.test.cpp b/test/sprite/sprite_parser.test.cpp
index 529e4c75e8..3e97ab9437 100644
--- a/test/sprite/sprite_parser.test.cpp
+++ b/test/sprite/sprite_parser.test.cpp
@@ -289,7 +289,7 @@ TEST(Sprite, SpriteParsingInvalidJSON) {
FAIL() << "Expected exception";
} catch (std::runtime_error& err) {
EXPECT_STREQ(
- "Failed to parse JSON: Missing a closing quotation mark in string. at offset 14",
+ "Failed to parse JSON on line 1 col 14: Missing a closing quotation mark in string.",
err.what());
}
}
diff --git a/test/style/source.test.cpp b/test/style/source.test.cpp
index f0ff1f81b4..9caba10a3f 100644
--- a/test/style/source.test.cpp
+++ b/test/style/source.test.cpp
@@ -130,7 +130,7 @@ TEST(Source, LoadingCorrupt) {
test.styleObserver.sourceError = [&] (Source& source, std::exception_ptr error) {
EXPECT_EQ("source", source.getID());
- EXPECT_EQ("Invalid value. at offset 0", util::toString(error));
+ EXPECT_EQ("on line 1 col 0: Invalid value.", util::toString(error));
test.end();
};