mirror of
https://github.com/google/googletest.git
synced 2025-01-15 09:15:48 +08:00
commit
1f605414cc
@ -1541,7 +1541,7 @@ TEST(FunctorActionTest, UnusedArguments) {
|
|||||||
// Verify that users can ignore uninteresting arguments.
|
// Verify that users can ignore uninteresting arguments.
|
||||||
Action<int(int, double y, double z)> a =
|
Action<int(int, double y, double z)> a =
|
||||||
[](int i, Unused, Unused) { return 2 * i; };
|
[](int i, Unused, Unused) { return 2 * i; };
|
||||||
tuple<int, double, double> dummy = make_tuple(3, 7.3, 9);
|
tuple<int, double, double> dummy = make_tuple(3, 7.3, 9.44);
|
||||||
EXPECT_EQ(6, a.Perform(dummy));
|
EXPECT_EQ(6, a.Perform(dummy));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user