MCPcopy Create free account
hub / github.com/WinMerge/winmerge / TEST_F

Function TEST_F

Testing/GoogleTest/StringDiffs/stringdiffs_test_bytelevel.cpp:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56
57 TEST_F(StringDiffsTestByte, ByteLevel19b3)
58 {
59 strdiff::SetBreakChars(_T(",;"));
60 std::vector<strdiff::wdiff> diffs = strdiff::ComputeWordDiffs(
61 // 0 1 2 3 4567890123456789012345678901234567890123456789
62 _T(" wsprintf(buf, _T(left= %s, %d,%d, right= %s, %d,%d ),"),
63 _T(" if (len2 < 50)"),
64 true, strdiff::EOL_STRICT, 0, false, 1, true);
65 EXPECT_EQ(4, diffs.size());
66 }
67
68 // Identical strings, case sensitivity, no whitespace, punctuations, byte-level
69 // Second word is different

Callers

nothing calls this directly

Calls 3

SetBreakCharsFunction · 0.85
ComputeWordDiffsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected