From d7c65c36cde0df3e0e26ec4ab74ab177e8fb923a Mon Sep 17 00:00:00 2001 From: Malcolm Tyrrell Date: Wed, 19 Aug 2020 11:31:46 +0100 Subject: [PATCH] Add unit test for formatting. --- test/unit/utImporter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/utImporter.cpp b/test/unit/utImporter.cpp index 3d57461a5..189b22bae 100644 --- a/test/unit/utImporter.cpp +++ b/test/unit/utImporter.cpp @@ -313,7 +313,7 @@ namespace { if (pFile == "deadlyImportError.fail") { - throw DeadlyImportError("Deadly import error test"); + throw DeadlyImportError("Deadly import error test. Details: ", 42, " More Details: ", "Failure"); } else if (pFile == "stdException.fail") { @@ -333,7 +333,7 @@ TEST_F(ImporterTest, deadlyImportError) pImp->SetIOHandler(new TestIOSystem); const aiScene* scene = pImp->ReadFile("deadlyImportError.fail", 0); EXPECT_EQ(scene, nullptr); - EXPECT_STREQ(pImp->GetErrorString(), "Deadly import error test"); + EXPECT_STREQ(pImp->GetErrorString(), "Deadly import error test. Details: 42 More Details: Failure"); EXPECT_NE(pImp->GetException(), std::exception_ptr()); }