We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
std::string_view probably uses some fallback stringification, and is expanded without quotes (and also bypasses pretty printing of invisibles).
std::string_view
#define CATCH_CONFIG_MAIN #include <catch2/catch.hpp> #include <string> #include <string_view> TEST_CASE("string_view == string") { std::string s = "foo"; std::string_view v = s; CHECK(s == v); }
run with -s:
-s
PASSED: CHECK( s == v ) with expansion: "foo" == foo
Catch version: v2.4.0
The text was updated successfully, but these errors were encountered:
a575536
No branches or pull requests
Description
std::string_view
probably uses some fallback stringification, and is expanded without quotes (and also bypasses pretty printing of invisibles).Steps to reproduce
run with
-s
:Extra information
Catch version: v2.4.0
The text was updated successfully, but these errors were encountered: