From eb963098d563df2b75889f2b2102d7d8021e915e Mon Sep 17 00:00:00 2001 From: Clare Macrae Date: Mon, 19 Oct 2020 18:29:06 +0100 Subject: [PATCH] t Add test to confirm existence of #157 --- tests/UT_Tests/UTApprovalTestTests.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/UT_Tests/UTApprovalTestTests.cpp b/tests/UT_Tests/UTApprovalTestTests.cpp index ca6442d5d..ce3e10e72 100644 --- a/tests/UT_Tests/UTApprovalTestTests.cpp +++ b/tests/UT_Tests/UTApprovalTestTests.cpp @@ -97,4 +97,12 @@ int main() [](auto value, auto& os) { os << "**value:** " << value; }, Options().fileOptions().withFileExtension(".md")); }; + + "VerifyAFileWithAmpersand&"_test = [&]() { + auto namer = Approvals::getDefaultNamer(); + expect(throws([&] { auto name = namer->getReceivedFile(".txt"); })) + << "documenting bug #157, if you see this, the bug has been fixed upstream " + "and can be closed, and this test should be updated"; + }; + }