Skip to content
Myr

Update test case for 'first' and 'last'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 7f8e0db · Browse files · 1 file+6 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−2 removed

  • tests:+6 added−2 removed

1 file+6 added−2 removed

modified:test/test_go.rb+6 added-2 removed
1552 unmodified lines
1553 tmux.send_keys 'seq 10 | fzf --info=hidden', :Enter1554 tmux.until { |lines| assert_equal '> 1', lines[-2] }1555 end15561557 def test_change_top1558 tmux.send_keys %(seq 1000 | #{FZF} --bind change:top), :Enter1557 def test_change_first_last1558 tmux.send_keys %(seq 1000 | #{FZF} --bind change:first,alt-Z:last), :Enter1559 tmux.until { |lines| assert_equal 1000, lines.match_count }1560 tmux.send_keys :Up1561 tmux.until { |lines| assert_equal '> 2', lines[-4] }1562 tmux.send_keys 1
1 unmodified line
1564 tmux.send_keys :Up1565 tmux.until { |lines| assert_equal '> 10', lines[-4] }1566 tmux.send_keys 11567 tmux.until { |lines| assert_equal '> 11', lines[-3] }1568 tmux.send_keys 'C-u'1569 tmux.until { |lines| assert_equal '> 1', lines[-3] }1570 tmux.send_keys :Escape, 'Z'1571 tmux.until { |lines| assert_equal '> 1000', lines[0] }1572 tmux.send_keys :Enter1573 end15741575 def test_accept_non_empty
750 unmodified lines