Skip to content
Myr

Add failing test case for #329

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 8fb31e1 · Browse files · 1 file+10 added−0 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+10 added−0 removed

  • tests:+10 added−0 removed

1 file+10 added−0 removed

modified:test/test_go.rb+10 added
772 unmodified lines
773 tmux.send_keys "TERM=xxx fzf", :Enter774 tmux.until { |lines| lines.any? { |l| l.include? 'Invalid $TERM: xxx' } }775 end776777 def test_with_nth778 writelines tempname, ['hello world ', 'byebye']779 assert_equal 'hello world ', `cat #{tempname} | #{FZF} -f"^he hehe" -x -n 2.. --with-nth 2,1,1`.chomp780 end781782 def test_with_nth_ansi783 writelines tempname, ["\x1b[33mhello \x1b[34;1mworld\x1b[m ", 'byebye']784 assert_equal 'hello world ', `cat #{tempname} | #{FZF} -f"^he hehe" -x -n 2.. --with-nth 2,1,1 --ansi`.chomp785 end786787private788 def writelines path, lines789 File.unlink path while File.exists? path790 File.open(path, 'w') { |f| f << lines.join($/) }
237 unmodified lines