Skip to content
Myr

Add test case for --null option

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 81ffde9 · Browse files · 1 file+7 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+7 added−0 removed

  • tests:+7 added−0 removed

1 file+7 added−0 removed

modified:test/test_go.rb+7 added
534 unmodified lines
535 assert_equal data, `cat #{tempname} | #{FZF} -f .`.chomp536 ensure537 File.unlink tempname538 end539540 def test_null541 lines = `find .`.split($/)542 assert_equal lines.last, `find . | #{FZF} -e -f "^#{lines.last}$"`.chomp543 assert_equal lines.last, `find . -print0 | #{FZF} --null -e -f "^#{lines.last}$"`.chomp544 end545546private547 def writelines path, lines548 File.unlink path while File.exists? path549 File.open(path, 'w') { |f| f << lines.join($/) }
208 unmodified lines