From 7d9e87304a1aba31a2d50a0a7ef28867bb4bd119 Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Thu, 23 Jun 2016 05:15:39 -0400 Subject: [PATCH] remove direct access to .current --- action_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action_test.go b/action_test.go index 7aa8c1a..5dd2649 100644 --- a/action_test.go +++ b/action_test.go @@ -353,19 +353,19 @@ func TestBackToInitialFilter(t *testing.T) { return } - if !assert.Equal(t, state.Filters().current, 0, "Expected filter to be at position 0, got %d", state.Filters().current) { + if !assert.Equal(t, state.Filters().Index(), 0, "Expected filter to be at position 0, got %d", state.Filters().Index()) { return } state.screen.SendEvent(termbox.Event{Key: termbox.KeyCtrlR}) time.Sleep(time.Second) - if !assert.Equal(t, state.Filters().Index(), 1, "Expected filter to be at position 1, got %d", state.Filters().current) { + if !assert.Equal(t, state.Filters().Index(), 1, "Expected filter to be at position 1, got %d", state.Filters().Index()) { return } state.screen.SendEvent(termbox.Event{Key: termbox.KeyCtrlQ}) time.Sleep(time.Second) - if !assert.Equal(t, state.Filters().current, 0, "Expected filter to be at position 0, got %d", state.Filters().current) { + if !assert.Equal(t, state.Filters().Index(), 0, "Expected filter to be at position 0, got %d", state.Filters().Index()) { return } }