summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2022-11-03 16:32:10 +0000
committergit <svn-admin@ruby-lang.org>2022-11-03 16:32:22 +0000
commitc5d6a483f5f771aa904ea85dad35a368ddf8047a (patch)
treedb87ec96f59ce622276fb73931351a44d7b5bb46 /test/ruby
parent68ef97d788cf8bff42d981bda41cd26128220740 (diff)
[ruby/irb] Refactor RubyLex and its tests
(https://github.com/ruby/irb/pull/427) * Make sure `RubyLex#set_input`'s context is always present in tests In real-world scenarios, the context should always be non-nil: https://github.com/ruby/irb/blob/master/lib/irb.rb#L489 So we should make sure our test setup reflects that. * Make context a required keyword Since in practice, `set_input`'s context should always be non-nil, its parameters should reflect that. And since `RubyLex#check_state` is only called by `#lex` and `#set_input`, both of which now always require context, we can assume its context should be non-nil too. https://github.com/ruby/irb/commit/1aeeb86203
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions