[clang-tools-extra] r357175 - [clangd] Update error message to fix tests after r357173

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 28 08:07:15 PDT 2019


Author: sammccall
Date: Thu Mar 28 08:07:15 2019
New Revision: 357175

URL: http://llvm.org/viewvc/llvm-project?rev=357175&view=rev
Log:
[clangd] Update error message to fix tests after r357173

Modified:
    clang-tools-extra/trunk/unittests/clangd/DraftStoreTests.cpp

Modified: clang-tools-extra/trunk/unittests/clangd/DraftStoreTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/DraftStoreTests.cpp?rev=357175&r1=357174&r2=357175&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/DraftStoreTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/DraftStoreTests.cpp Thu Mar 28 08:07:15 2019
@@ -240,7 +240,7 @@ TEST(DraftStoreIncrementalUpdateTest, St
 
   EXPECT_TRUE(!Result);
   EXPECT_EQ(toString(Result.takeError()),
-            "UTF-16 offset 100 is invalid for line 0");
+            "utf-16 offset 100 is invalid for line 0");
 }
 
 TEST(DraftStoreIncrementalUpdateTest, EndCharOutOfRange) {
@@ -261,7 +261,7 @@ TEST(DraftStoreIncrementalUpdateTest, En
 
   EXPECT_TRUE(!Result);
   EXPECT_EQ(toString(Result.takeError()),
-            "UTF-16 offset 100 is invalid for line 0");
+            "utf-16 offset 100 is invalid for line 0");
 }
 
 TEST(DraftStoreIncrementalUpdateTest, StartLineOutOfRange) {
@@ -335,7 +335,7 @@ TEST(DraftStoreIncrementalUpdateTest, In
 
   EXPECT_TRUE(!Result);
   EXPECT_EQ(toString(Result.takeError()),
-            "UTF-16 offset 100 is invalid for line 0");
+            "utf-16 offset 100 is invalid for line 0");
 
   Optional<std::string> Contents = DS.getDraft(File);
   EXPECT_TRUE(Contents);




More information about the cfe-commits mailing list