Home | History | Annotate | Download | only in tests

Lines Matching refs:rstr

127   marisa_alpha::RString rstr;
129 ASSERT(rstr.ptr() == NULL);
130 ASSERT(rstr.length() == 0);
140 rstr = marisa_alpha::RString(str);
141 ASSERT(rstr.ptr() == s);
142 ASSERT(rstr.length() == 2);
143 ASSERT(rstr[0] == s[1]);
144 ASSERT(rstr[1] == s[0]);
159 rstr = marisa_alpha::RString(str);
161 ASSERT(rstr.ptr() == s2.c_str());
162 ASSERT(rstr.length() == 3);
163 ASSERT(rstr[0] == s2[2]);
164 ASSERT(rstr[1] == s2[1]);
165 ASSERT(rstr[2] == s2[0]);
167 ASSERT(rstr.substr(1, 2).length() == 2);
168 ASSERT(rstr.substr(1, 2)[0] == 'y');
169 ASSERT(rstr.substr(1, 2)[1] == 'x');