1 #define BOOST_TEST_MODULE(canonical_string_t) 2 #include "boost/test/unit_test.hpp" 8 BOOST_AUTO_TEST_SUITE(canonical_string_t)
34 "canonical_result returns false on input: '" << input <<
"'");
35 BOOST_TEST(result == wanted);
47 return '\'' + s +
'\'';
58 "canonical_string() should return false on empty input.");
71 BOOST_AUTO_TEST_SUITE_END()
void becomes(std::string const &input, std::string const &wanted)
std::string dquoted(std::string const &s)
bool is_double_quoted_string(std::string const &str)
bool canonical_string(std::string const &str, std::string &result)
std::string squoted(std::string const &s)
BOOST_AUTO_TEST_CASE(is_single_quoted_string_t)
bool is_single_quoted_string(std::string const &str)