Skip to content

Commit 91fdeb6

Browse files
committed
Check individual data products instead of tuple
This works around an issue with using std::tuple types in CHECK statements
1 parent 7e0201c commit 91fdeb6

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

test/class_registration.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ namespace {
5252

5353
void verify_results(int number, double temperature, std::string const& name)
5454
{
55-
auto const expected = std::make_tuple(3, 98.5, "John");
56-
CHECK(std::tie(number, temperature, name) == expected);
55+
CHECK(number == 3);
56+
CHECK(temperature == 98.5);
57+
CHECK(name == "John");
5758
}
5859
}
5960

test/function_registration.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ namespace {
4646

4747
void verify_results(int number, double temperature, std::string const& name)
4848
{
49-
auto const expected = std::make_tuple(3, 98.5, "John");
50-
CHECK(std::tie(number, temperature, name) == expected);
49+
CHECK(number == 3);
50+
CHECK(temperature == 98.5);
51+
CHECK(name == "John");
5152
}
5253

5354
}

0 commit comments

Comments
 (0)