diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2020-11-25 13:08:14 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-11-25 13:08:28 +0900 |
| commit | 298342677107f19f2ef7035afcf5302fdf26aa51 (patch) | |
| tree | e38f46dc8bb087a5f378f2c03e9d55ccbcb710a6 /src/result_test.go | |
| parent | c61eb94b3f5f2a51e456501b1d7bdb39925f3b08 (diff) | |
| download | fzf-298342677107f19f2ef7035afcf5302fdf26aa51.tar.gz | |
Fix unit tests
Diffstat (limited to 'src/result_test.go')
| -rw-r--r-- | src/result_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
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) |
