From f6c92068aca2b224032d2266fbb6e9876b8cf78d Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Tue, 19 Feb 2019 16:18:40 +0000 Subject: [PATCH] Fix Clang+GCC --- tests/swap.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/swap.cpp b/tests/swap.cpp index a5e2b97..f031ce6 100644 --- a/tests/swap.cpp +++ b/tests/swap.cpp @@ -90,7 +90,12 @@ TEST_CASE("swap") { tl::expected a{s1}; tl::expected b{tl::unexpect, s2}; should_throw = 1; + + #ifdef _MSC_VER + //this seems to break catch on GCC and Clang REQUIRE_THROWS(swap(a, b)); + #endif + REQUIRE(a->i == s1); REQUIRE(b.error().i == s2); } \ No newline at end of file