Skip to content

Commit

Permalink
sane test case names
Browse files Browse the repository at this point in the history
  • Loading branch information
cthbleachbit committed Jun 8, 2024
1 parent eb30d84 commit cf867b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tests/test_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ TestSquare select_corner(bool left, bool up, const std::vector<std::shared_ptr<N
}
return corner;
}

std::ostream& operator<<(std::ostream& os, const ImageLoadingTestParam& param) {
os << fmt::format("{} {}-{}", param.image_name, param.up ? "upper" : "lower", param.left ? "left" : "right");
return os;
}
1 change: 1 addition & 0 deletions src/tests/test_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ struct ImageLoadingTestParam {
bool left = false;
bool up = false;
};
std::ostream& operator<<(std::ostream& os, const ImageLoadingTestParam& param);


class ImageLoadingTest : public ::testing::TestWithParam<ImageLoadingTestParam> {
Expand Down

0 comments on commit cf867b4

Please sign in to comment.