diff options
author | Nobuhiro IMAI <nov@yo.rim.or.jp> | 2020-09-22 09:06:43 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-11-22 21:00:11 +0900 |
commit | 5218f17737594867ffe5c2cd9c90b19c7378af05 (patch) | |
tree | 8e91b19c17a9741ccef405b494dd8683e5f105ed /test/irb | |
parent | 7c879cbb3f24c742e0d3226c39d413abe7519205 (diff) |
[ruby/irb] support more body argument for oneliner method definition
https://github.com/ruby/irb/commit/2ff1295533
Diffstat (limited to 'test/irb')
-rw-r--r-- | test/irb/test_ruby_lex.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/irb/test_ruby_lex.rb b/test/irb/test_ruby_lex.rb index 14b43f5718..25f037ec3b 100644 --- a/test/irb/test_ruby_lex.rb +++ b/test/irb/test_ruby_lex.rb @@ -233,6 +233,8 @@ module TestIRB Row.new(%q( def bar0() = 3), nil, 2), Row.new(%q( def bar1(a) = a), nil, 2), Row.new(%q( def bar2(a, b) = a + b), nil, 2), + Row.new(%q( def bar3() = :s), nil, 2), + Row.new(%q( def bar4() = Time.now), nil, 2), Row.new(%q(end), 0, 0), ] |