Home | History | Annotate | Download | only in tests

Lines Matching refs:rstr

125   marisa::RString rstr;
127 ASSERT(rstr.ptr() == NULL);
128 ASSERT(rstr.length() == 0);
138 rstr = marisa::RString(str);
139 ASSERT(rstr.ptr() == s);
140 ASSERT(rstr.length() == 2);
141 ASSERT(rstr[0] == s[1]);
142 ASSERT(rstr[1] == s[0]);
157 rstr = marisa::RString(str);
159 ASSERT(rstr.ptr() == s2.c_str());
160 ASSERT(rstr.length() == 3);
161 ASSERT(rstr[0] == s2[2]);
162 ASSERT(rstr[1] == s2[1]);
163 ASSERT(rstr[2] == s2[0]);
165 ASSERT(rstr.substr(1, 2).length() == 2);
166 ASSERT(rstr.substr(1, 2)[0] == 'y');
167 ASSERT(rstr.substr(1, 2)[1] == 'x');