Details
Details
- Reviewers
djasper
Diff Detail
Diff Detail
Event Timeline
unittests/Format/FormatTestJS.cpp | ||
---|---|---|
653 | I'd be slightly hesitant to use verifyFormat for any of these as that simply cops out when finding "//". Thus, tests might pass for the wrong reasons. It is probably better to use EXPECT_EQ with a manually messed up "before". |
unittests/Format/FormatTestJS.cpp | ||
---|---|---|
653 | Done, wasn't aware of that. clang-format would actually misformat these snippets (indenting the second var) before the change, so the tests did move from red to green during development. |
I'd be slightly hesitant to use verifyFormat for any of these as that simply cops out when finding "//". Thus, tests might pass for the wrong reasons. It is probably better to use EXPECT_EQ with a manually messed up "before".