Skip to content

Commit 5f9c862

Browse files
committed
No need for variables here
1 parent d7be4c8 commit 5f9c862

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

diffmatchpatch/diff_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,9 +1129,6 @@ func TestDiffBisect(t *testing.T) {
11291129

11301130
dmp := New()
11311131

1132-
text1 := "cat"
1133-
text2 := "map"
1134-
11351132
for i, tc := range []TestCase{
11361133
{
11371134
Name: "normal",
@@ -1167,7 +1164,7 @@ func TestDiffBisect(t *testing.T) {
11671164
},
11681165
},
11691166
} {
1170-
actual := dmp.DiffBisect(text1, text2, tc.Time)
1167+
actual := dmp.DiffBisect("cat", "map", tc.Time)
11711168
assert.Equal(t, tc.Expected, actual, fmt.Sprintf("Test case #%d, %s", i, tc.Name))
11721169
}
11731170
}

0 commit comments

Comments
 (0)