# File test/bin/test_grep.rb, line 122 def test_main_0402 tempfile1 = create_tempfile("abcde\nfghij\nxxghixx\n") tempfile2 = create_tempfile("abcde\nfghij\nxxghixx\nxxghixxghixxghixx\nxxx\n") @obj.main(["--summary", "ghi", tempfile1.path, tempfile2.path]) assert_equal( "#{tempfile1.path}: 2s 2ӏ\n" + "#{tempfile2.path}: 3s 5ӏ\n", @string_io.string) tempfile1.close tempfile2.close end