Lines Matching refs:string
22 void stringTest( std::string result, std::string expected )
27 TS_FAIL( std::string("Expected (") + expected + "), found null" );
29 TS_FAIL( std::string("Expected null, found (") + result + ")" );
33 std::string ValueOrEmpty(const char* s) {
34 return s == NULL ? std::string() : s;
37 void toStringTest( std::string uri, std::string expected ) {
40 void pathTest( std::string uri, std::string expected ) {
54 toStringTest( std::string(cases[i][0]), std::string(cases[i][1]) );
73 stringTest( URI("cxxtest-uri.svg").getFullPath("/tmp"), std::string("/tmp/cxxtest-uri.svg") );
74 stringTest( URI("cxxtest-uri.svg").getFullPath("/usr/../tmp"), std::string("/tmp/cxxtest-uri.svg") );