mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* bootstraptest/test_literal_suffix.rb: add two test cases to
examine that "1if true" and "1rescue nil" are recognized as 1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
da5e757237
commit
ae0181b7fe
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Aug 2 00:02:00 2013 Kenta Murata <mrkn@mrkn.jp>
|
||||
|
||||
* bootstraptest/test_literal_suffix.rb: add two test cases to
|
||||
examine that "1if true" and "1rescue nil" are recognized as 1.
|
||||
|
||||
Thu Aug 1 23:45:00 2013 Kenta Murata <mrkn@mrkn.jp>
|
||||
|
||||
* rational.c (rb_flt_rationalize_with_prec): new public C function
|
||||
|
|
|
@ -37,6 +37,8 @@ assert_equal '0+6/5i', '1.2ri'
|
|||
assert_equal 'Complex', '1.2ri.class'
|
||||
assert_equal '0+10.0i', '1e1i'
|
||||
assert_equal 'Complex', '1e1i.class'
|
||||
assert_equal '1', '1if true'
|
||||
assert_equal '1', '1rescue nil'
|
||||
|
||||
assert_equal 'syntax error, unexpected tIDENTIFIER, expecting end-of-input',
|
||||
%q{begin eval('1ir', nil, '', 0); rescue SyntaxError => e; e.message[/\A:(?:\d+:)? (.*)/, 1] end}
|
||||
|
|
Loading…
Reference in a new issue