Lines Matching refs:REQUIRE
38 REQUIRE( empty.empty() );
39 REQUIRE( empty.size() == 0 );
40 REQUIRE( std::strcmp( empty.c_str(), "" ) == 0 );
45 REQUIRE( s.empty() == false );
46 REQUIRE( s.size() == 5 );
47 REQUIRE( isSubstring( s ) == false );
50 REQUIRE( std::strcmp( rawChars, "hello" ) == 0 );
53 REQUIRE( isOwned( s ) == false );
55 REQUIRE( s.c_str() == rawChars );
57 REQUIRE( isOwned( s ) == false );
62 REQUIRE( original == "original" );
63 REQUIRE( isSubstring( original ) );
64 REQUIRE( isOwned( original ) == false );
68 REQUIRE( isSubstring( original ) == false );
69 REQUIRE( isOwned( original ) );
78 REQUIRE( ss.empty() == false );
79 REQUIRE( ss.size() == 5 );
80 REQUIRE( std::strcmp( ss.c_str(), "hello" ) == 0 );
81 REQUIRE( ss == "hello" );
84 REQUIRE( isSubstring( ss ) );
85 REQUIRE( isOwned( ss ) == false );
88 REQUIRE( rawChars == s.currentData() ); // same pointer value
89 REQUIRE( ss.c_str() != rawChars );
91 REQUIRE( isSubstring( ss ) == false );
92 REQUIRE( isOwned( ss ) );
94 REQUIRE( ss.currentData() != s.currentData() ); // different pointer value
99 REQUIRE( ss.size() == 6 );
100 REQUIRE( std::strcmp( ss.c_str(), "world!" ) == 0 );
105 REQUIRE( s.c_str() == s2.c_str() );
109 REQUIRE( s.c_str() != ss.c_str() );
114 REQUIRE( StringRef("hello") == StringRef("hello") );
115 REQUIRE( StringRef("hello") != StringRef("cello") );
123 REQUIRE( sr == "a standard string" );
124 REQUIRE( sr.size() == stdStr.size() );
128 REQUIRE( sr == "a standard string" );
129 REQUIRE( sr.size() == stdStr.size() );
134 REQUIRE( sr == "a standard string" );
135 REQUIRE( sr.size() == stdStr.size() );
144 REQUIRE( stdStr == "a stringref" );
145 REQUIRE( stdStr.size() == sr.size() );
149 REQUIRE( stdStr == "a stringref" );
150 REQUIRE( stdStr.size() == sr.size() );
155 REQUIRE( stdStr == "a stringref" );
156 REQUIRE( stdStr.size() == sr.size() );
162 REQUIRE(ascii.numberOfCharacters() == ascii.size());
165 REQUIRE(simpleu8.numberOfCharacters() == 30);
168 REQUIRE(emojis.numberOfCharacters() == 9);