projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prevent erroneous code like vector<fbstring>{{"this", "that"}} from compiling
[folly.git]
/
folly
/
test
/
FBStringTest.cpp
diff --git
a/folly/test/FBStringTest.cpp
b/folly/test/FBStringTest.cpp
index fb4a79912f044edeb303d2abbd653f07bc7cc224..4c7ba8f7565a7233c98feb40b4617000b13b7c9a 100644
(file)
--- a/
folly/test/FBStringTest.cpp
+++ b/
folly/test/FBStringTest.cpp
@@
-1426,3
+1426,9
@@
TEST(FBStringCtorTest, NullZeroConstruction) {
folly::fbstring f(p, n);
EXPECT_EQ(f.size(), 0);
}
+
+// TEST(FBStringCtorTest, BadIteratorPair) {
+// // Should fail to compile
+// std::vector<fbstring> vs{{"hello", "world!"}};
+// EXPECT_EQ(vs.size(), 2u);
+// }