Fix for travis

This commit is contained in:
Sebastian Messmer 2018-12-25 19:53:33 +01:00
parent a86ac8241d
commit e489ce9880

View File

@ -1037,22 +1037,22 @@ TEST(EitherTest, givenRight_whenModified_thenValueIsChanged) {
TEST(EitherTest, canEmplaceConstructLeft) {
test_with_matrix({
[] (const auto& test) {
either<tuple<int, int>, tuple<int, int, int>> a(2, 3);
either<tuple<int, int>, tuple<int, string, int>> a(2, 3);
test(a);
}
},
EXPECT_IS_LEFT<tuple<int, int>, tuple<int, int, int>>(tuple<int, int>(2, 3))
EXPECT_IS_LEFT<tuple<int, int>, tuple<int, string, int>>(tuple<int, int>(2, 3))
);
}
TEST(EitherTest, canEmplaceConstructRight) {
test_with_matrix({
[] (const auto& test) {
either<tuple<int, int>, tuple<int, int, int>> a(2, 3, 4);
either<tuple<int, int>, tuple<int, string, int>> a(2, "3", 4);
test(a);
}
},
EXPECT_IS_RIGHT<tuple<int, int>, tuple<int, int, int>>(tuple<int, int, int>(2, 3, 4))
EXPECT_IS_RIGHT<tuple<int, int>, tuple<int, string, int>>(tuple<int, string, int>(2, "3", 4))
);
}