From 298342677107f19f2ef7035afcf5302fdf26aa51 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 25 Nov 2020 13:08:14 +0900 Subject: Fix unit tests --- src/result_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/result_test.go') diff --git a/src/result_test.go b/src/result_test.go index 7b21ba54..1f3d338c 100644 --- a/src/result_test.go +++ b/src/result_test.go @@ -109,10 +109,10 @@ func TestColorOffset(t *testing.T) { item := Result{ item: &Item{ colors: &[]ansiOffset{ - {[2]int32{0, 20}, ansiState{1, 5, 0}}, - {[2]int32{22, 27}, ansiState{2, 6, tui.Bold}}, - {[2]int32{30, 32}, ansiState{3, 7, 0}}, - {[2]int32{33, 40}, ansiState{4, 8, tui.Bold}}}}} + {[2]int32{0, 20}, ansiState{1, 5, 0, -1}}, + {[2]int32{22, 27}, ansiState{2, 6, tui.Bold, -1}}, + {[2]int32{30, 32}, ansiState{3, 7, 0, -1}}, + {[2]int32{33, 40}, ansiState{4, 8, tui.Bold, -1}}}}} colBase := tui.NewColorPair(89, 189, tui.AttrUndefined) colMatch := tui.NewColorPair(99, 199, tui.AttrUndefined) -- cgit v1.2.3