Skip to content

Commit 9f0667b

Browse files
committed
MSVC compatibility
1 parent 53dea09 commit 9f0667b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

testing/internal/serialization_v100.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ TEST_CASE("v100 protocol serialization", "[basic][serialization]") {
8888
inarch >> in2 >> in3;
8989
REQUIRE(in2.i == 0x00ab00cd00ef0012u);
9090
REQUIRE(in3.i == 0x00ab00cd00ef0012u);
91+
9192
std::string teststr;
9293
inarch >> teststr >> in1;
9394
REQUIRE(teststr == std::string("Testclass"));
@@ -97,9 +98,11 @@ TEST_CASE("v100 protocol serialization", "[basic][serialization]") {
9798
REQUIRE(in1.negativeint == out1.negativeint);
9899
REQUIRE(in1.testint == out1.testint);
99100
REQUIRE(in1.teststr == out1.teststr);
100-
REQUIRE(*in1.s1 == *out1.s1);
101-
REQUIRE(*in1.s2 == *out1.s2);
102-
CHECK(true);
101+
102+
if(!(*in1.s1 == *out1.s1))
103+
FAIL("Sample 1 serialization mismatch");
104+
if(!(*in1.s2 == *out1.s2))
105+
FAIL("Sample 2 serialization mismatch");
103106
} catch (std::exception &e) { FAIL(e.what()); }
104107
}
105108

0 commit comments

Comments
 (0)