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