    # File test/bin/test_grep.rb, line 348
            def test_puts_matched_lines_0401

                    # 1箇所マッチ

                    @string_io.string = ""
                    @obj.instance_variable_set(:@match_line_count, 0)
                    @obj.instance_eval { puts_matched_lines("aaa\nbbb\nccc\nddd\neee", [[2,4]]) }
                    assert_equal(2, @obj.instance_eval { @match_line_count } )
                    assert_equal("aaa\nbbb\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", [[14,16]]) }
                    assert_equal(2, @obj.instance_eval { @match_line_count } )
                    assert_equal("ddd\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,14]]) }
                    assert_equal(3, @obj.instance_eval { @match_line_count } )
                    assert_equal("bbb\nccc\nddd\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", [[2,4], [4,14]]) }
                    assert_equal(4, @obj.instance_eval { @match_line_count } )
                    assert_equal("aaa\nbbb\nccc\nddd\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], [6,9], [10,11]]) }
                    assert_equal(2, @obj.instance_eval { @match_line_count } )
                    assert_equal("bbb\nccc\n", @string_io.string)
            end