projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ensure curly-braces around control-flow
[folly.git]
/
folly
/
gen
/
test
/
BaseTest.cpp
diff --git
a/folly/gen/test/BaseTest.cpp
b/folly/gen/test/BaseTest.cpp
index 5d9075bda463e95632cfccb05b186812422c97cc..0158b93674eb702820dbfae24a3d51480ee1ab9b 100644
(file)
--- a/
folly/gen/test/BaseTest.cpp
+++ b/
folly/gen/test/BaseTest.cpp
@@
-877,10
+877,12
@@
TEST(Gen, MapYielders) {
| map([](int n) {
return GENERATOR(int) {
int i;
- for (i = 1; i < n; ++i)
+ for (i = 1; i < n; ++i)
{
yield(i);
- for (; i >= 1; --i)
+ }
+ for (; i >= 1; --i) {
yield(i);
+ }
};
})
| concat;