Unreviewed, build fix after r210313 part 2
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jan 2017 04:43:13 +0000 (04:43 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jan 2017 04:43:13 +0000 (04:43 +0000)
https://bugs.webkit.org/show_bug.cgi?id=166676

Add 'U' suffix.

* TestWebKitAPI/Tests/WTF/StringView.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WTF/WTFString.cpp:
(TestWebKitAPI::TEST):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210317 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WTF/StringView.cpp
Tools/TestWebKitAPI/Tests/WTF/WTFString.cpp

index 3d047a1..c0af584 100644 (file)
@@ -1,5 +1,17 @@
 2017-01-04  Yusuke Suzuki  <utatane.tea@gmail.com>
 
+        Unreviewed, build fix after r210313 part 2
+        https://bugs.webkit.org/show_bug.cgi?id=166676
+
+        Add 'U' suffix.
+
+        * TestWebKitAPI/Tests/WTF/StringView.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WTF/WTFString.cpp:
+        (TestWebKitAPI::TEST):
+
+2017-01-04  Yusuke Suzuki  <utatane.tea@gmail.com>
+
         Limit thread name appropriately
         https://bugs.webkit.org/show_bug.cgi?id=166676
 
index f7f8188..34503f4 100644 (file)
@@ -839,16 +839,16 @@ TEST(WTF, StringViewLeftBasic)
 TEST(WTF, StringViewReverseFindBasic)
 {
     auto reference = stringViewFromLiteral("Cappuccino");
-    EXPECT_EQ(reference.reverseFind('o'), 9);
-    EXPECT_EQ(reference.reverseFind('n'), 8);
-    EXPECT_EQ(reference.reverseFind('c'), 6);
-    EXPECT_EQ(reference.reverseFind('p'), 3);
+    EXPECT_EQ(reference.reverseFind('o'), 9U);
+    EXPECT_EQ(reference.reverseFind('n'), 8U);
+    EXPECT_EQ(reference.reverseFind('c'), 6U);
+    EXPECT_EQ(reference.reverseFind('p'), 3U);
     EXPECT_EQ(reference.reverseFind('k'), notFound);
 
     EXPECT_EQ(reference.reverseFind('o', 8), notFound);
-    EXPECT_EQ(reference.reverseFind('c', 8), 6);
-    EXPECT_EQ(reference.reverseFind('c', 6), 6);
-    EXPECT_EQ(reference.reverseFind('c', 5), 5);
+    EXPECT_EQ(reference.reverseFind('c', 8), 6U);
+    EXPECT_EQ(reference.reverseFind('c', 6), 6U);
+    EXPECT_EQ(reference.reverseFind('c', 5), 5U);
     EXPECT_EQ(reference.reverseFind('c', 4), notFound);
 }
 
index e2222dd..2764965 100644 (file)
@@ -348,16 +348,16 @@ TEST(WTF, StringLeftBasic)
 TEST(WTF, StringReverseFindBasic)
 {
     auto reference = String::fromUTF8("Cappuccino");
-    EXPECT_EQ(reference.reverseFind('o'), 9);
-    EXPECT_EQ(reference.reverseFind('n'), 8);
-    EXPECT_EQ(reference.reverseFind('c'), 6);
-    EXPECT_EQ(reference.reverseFind('p'), 3);
+    EXPECT_EQ(reference.reverseFind('o'), 9U);
+    EXPECT_EQ(reference.reverseFind('n'), 8U);
+    EXPECT_EQ(reference.reverseFind('c'), 6U);
+    EXPECT_EQ(reference.reverseFind('p'), 3U);
     EXPECT_EQ(reference.reverseFind('k'), notFound);
 
     EXPECT_EQ(reference.reverseFind('o', 8), notFound);
-    EXPECT_EQ(reference.reverseFind('c', 8), 6);
-    EXPECT_EQ(reference.reverseFind('c', 6), 6);
-    EXPECT_EQ(reference.reverseFind('c', 5), 5);
+    EXPECT_EQ(reference.reverseFind('c', 8), 6U);
+    EXPECT_EQ(reference.reverseFind('c', 6), 6U);
+    EXPECT_EQ(reference.reverseFind('c', 5), 5U);
     EXPECT_EQ(reference.reverseFind('c', 4), notFound);
 }