blob: f7d331bc248d453a4cdd3234eafbf216497dcab9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: false
require 'test/unit'
require 'irb/ruby-lex'
module TestIRB
class TestRubyLex < Test::Unit::TestCase
def setup
@scanner = RubyLex.new
end
def test_set_input_proc
called = false
@scanner.set_input(self) {|x| called = true; nil}
assert_nil(@scanner.lex)
assert(called)
end
end
end
|