projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add support for partial redefs to the fast register allocator.
[oota-llvm.git]
/
unittests
/
ADT
/
StringRefTest.cpp
diff --git
a/unittests/ADT/StringRefTest.cpp
b/unittests/ADT/StringRefTest.cpp
index 6507c20b2b1fbfbd5eb19d226e847dbef1012bf4..b0dcb0a0abababc3157e1bdaf8571b9059033ed6 100644
(file)
--- a/
unittests/ADT/StringRefTest.cpp
+++ b/
unittests/ADT/StringRefTest.cpp
@@
-247,6
+247,11
@@
TEST(StringRefTest, Count) {
EXPECT_EQ(0U, Str.count("zz"));
}
+TEST(StringRefTest, EditDistance) {
+ StringRef Str("hello");
+ EXPECT_EQ(2U, Str.edit_distance("hill"));
+}
+
TEST(StringRefTest, Misc) {
std::string Storage;
raw_string_ostream OS(Storage);