From de49e7f118e111e71e06a6d754add11ac2165a57 Mon Sep 17 00:00:00 2001 From: chzyer <0@0xdf.com> Date: Mon, 11 Apr 2016 01:54:54 +0800 Subject: [PATCH] [remote] fix test --- complete_segment_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/complete_segment_test.go b/complete_segment_test.go index 0e90241..73a828a 100644 --- a/complete_segment_test.go +++ b/complete_segment_test.go @@ -154,6 +154,11 @@ func TestSegmentCompleter(t *testing.T) { {"a a1 a11", 8, sr(""), 3}, {"route add", 9, sr("", "domain"), 3}, } + for _, r := range ret { + for idx, rr := range r.Ret { + r.Ret[idx] = append(rr, ' ') + } + } for i, r := range ret { newLine, length := s.Do([]rune(r.Line), r.Pos) test.Equal(rs(newLine), rs(r.Ret), fmt.Errorf("%v", i))