    # File test/bin/test_grep.rb, line 295
            def test_puts_matched_lines_0301

                    # マッチなし

                    @string_io.string = ""
                    @obj.instance_variable_set(:@match_line_count, 0)
                    @obj.instance_eval { puts_matched_lines("abcde\nABCDE\nfooboo", []) }
                    assert_equal(0, @obj.instance_eval { @match_line_count } )
                    assert_equal("", @string_io.string)

                    # 1箇所マッチ

                    @string_io.string = ""
                    @obj.instance_variable_set(:@match_line_count, 0)
                    @obj.instance_eval { puts_matched_lines("abcde\nABCDE\nfooboo", [[0, 1]]) }
                    assert_equal(1, @obj.instance_eval { @match_line_count } )
                    assert_equal("abcde\n", @string_io.string)

                    @string_io.string = ""
                    @obj.instance_variable_set(:@match_line_count, 0)
                    @obj.instance_eval { puts_matched_lines("abcde\nABCDE\nfooboo", [[17, 18]]) }
                    assert_equal(1, @obj.instance_eval { @match_line_count } )
                    assert_equal("fooboo\n", @string_io.string)

                    @string_io.string = ""
                    @obj.instance_variable_set(:@match_line_count, 0)
                    @obj.instance_eval { puts_matched_lines("abcde\nABCDE\nfooboo", [[6, 11]]) }
                    assert_equal(1, @obj.instance_eval { @match_line_count } )
                    assert_equal("ABCDE\n", @string_io.string)

                    # 複数箇所マッチ

                    @string_io.string = ""
                    @obj.instance_variable_set(:@match_line_count, 0)
                    @obj.instance_eval { puts_matched_lines("aaa\nbbb\nccc\nddd\neee", [[0,3], [8,10], [16,17]]) }
                    assert_equal(3, @obj.instance_eval { @match_line_count } )
                    assert_equal("aaa\nccc\neee\n", @string_io.string)

                    @string_io.string = ""
                    @obj.instance_variable_set(:@match_line_count, 0)
                    @obj.instance_eval { puts_matched_lines("aaa\nbbb\nccc\nddd\neee", [[4,5], [14,15]]) }
                    assert_equal(2, @obj.instance_eval { @match_line_count } )
                    assert_equal("bbb\nddd\n", @string_io.string)
            end