Lines Matching refs:SmallString
10 // SmallString unit tests.
14 #include "llvm/ADT/SmallString.h"
27 typedef SmallString<40> StringType;
163 EXPECT_EQ(-1, SmallString<10>("aab").compare("aad"));
164 EXPECT_EQ( 0, SmallString<10>("aab").compare("aab"));
165 EXPECT_EQ( 1, SmallString<10>("aab").compare("aaa"));
166 EXPECT_EQ(-1, SmallString<10>("aab").compare("aabb"));
167 EXPECT_EQ( 1, SmallString<10>("aab").compare("aa"));
168 EXPECT_EQ( 1, SmallString<10>("\xFF").compare("\1"));
170 EXPECT_EQ(-1, SmallString<10>("AaB").compare_lower("aAd"));
171 EXPECT_EQ( 0, SmallString<10>("AaB").compare_lower("aab"));
172 EXPECT_EQ( 1, SmallString<10>("AaB").compare_lower("AAA"));
173 EXPECT_EQ(-1, SmallString<10>("AaB").compare_lower("aaBb"));
174 EXPECT_EQ( 1, SmallString<10>("AaB").compare_lower("aA"));
175 EXPECT_EQ( 1, SmallString<10>("\xFF").compare_lower("\1"));
177 EXPECT_EQ(-1, SmallString<10>("aab").compare_numeric("aad"));
178 EXPECT_EQ( 0, SmallString<10>("aab").compare_numeric("aab"));
179 EXPECT_EQ( 1, SmallString<10>("aab").compare_numeric("aaa"));
180 EXPECT_EQ(-1, SmallString<10>("aab").compare_numeric("aabb"));
181 EXPECT_EQ( 1, SmallString<10>("aab").compare_numeric("aa"));
182 EXPECT_EQ(-1, SmallString<10>("1").compare_numeric("10"));
183 EXPECT_EQ( 0, SmallString<10>("10").compare_numeric("10"));
184 EXPECT_EQ( 0, SmallString<10>("10a").compare_numeric("10a"));
185 EXPECT_EQ( 1, SmallString<10>("2").compare_numeric("1"));
186 EXPECT_EQ( 0, SmallString<10>("llvm_v1i64_ty").compare_numeric("llvm_v1i64_ty"));
187 EXPECT_EQ( 1, SmallString<10>("\xFF").compare_numeric("\1"));
188 EXPECT_EQ( 1, SmallString<10>("V16").compare_numeric("V1_q0"));
189 EXPECT_EQ(-1, SmallString<10>("V1_q0").compare_numeric("V16"));
190 EXPECT_EQ(-1, SmallString<10>("V8_q0").compare_numeric("V16"));
191 EXPECT_EQ( 1, SmallString<10>("V16").compare_numeric("V8_q0"));
192 EXPECT_EQ(-1, SmallString<10>("V1_q0").compare_numeric("V8_q0"));
193 EXPECT_EQ( 1, SmallString<10>("V8_q0").compare_numeric("V1_q0"));