Extra expectations for ADL toAppend
authorYedidya Feldblum <yfeldblum@fb.com>
Wed, 15 Nov 2017 06:39:18 +0000 (22:39 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 15 Nov 2017 06:57:33 +0000 (22:57 -0800)
Summary: [Folly] Extra expectations for ADL `toAppend`.

Reviewed By: Orvid

Differential Revision: D6330547

fbshipit-source-id: d1363280f097f860883ba84d6cfe7caa4e4cf9de

folly/test/ConvTest.cpp

index 115a32bfc0edffd144f6fe285ab2d9f6884a39ed..0f7b36699bc9692f7e8a2cd0689f066b3bcc0cff 100644 (file)
@@ -1249,6 +1249,9 @@ TEST(Conv, custom_kkproviders) {
   // make sure above implementation of estimateSpaceNeeded() is used.
   EXPECT_GT(str.capacity(), 2000);
   EXPECT_LT(str.capacity(), 2500);
   // make sure above implementation of estimateSpaceNeeded() is used.
   EXPECT_GT(str.capacity(), 2000);
   EXPECT_LT(str.capacity(), 2500);
+  // toAppend with other arguments
+  toAppend("|", expected, &str);
+  EXPECT_EQ("7x8|7x8", str);
 }
 
 TEST(Conv, TryToThenWithVoid) {
 }
 
 TEST(Conv, TryToThenWithVoid) {