Verifies that, even with a different number of leading spaces, the Reindent routine turns them into a uniform number of leading spaces. Also throws in some trailing whitespace on the original to show it is removed.
| 29 | // Also throws in some trailing whitespace on the original to show it is |
| 30 | // removed. |
| 31 | TEST(UtilTest, ReindentsDifferentNumberOfLeadingSpacesUniformly) { |
| 32 | string original = R"( hello there |
| 33 | world)"; |
| 34 | string got = Reindent(original, " "); |
| 35 | string want = R"( hello there |
| 36 | world)"; |
| 37 | EXPECT_EQ(want, got); |
| 38 | } |
| 39 | |
| 40 | TEST(UtilTest, HumanReadableNumFlopsExample) { |
| 41 | ASSERT_EQ("1.00GFLOP/s", HumanReadableNumFlops(1e9, 1e9)); |
nothing calls this directly
no test coverage detected