ruby-changes:30263
From: mrkn <ko1@a...>
Date: Fri, 2 Aug 2013 00:14:58 +0900 (JST)
Subject: [ruby-changes:30263] mrkn:r42315 (trunk): * bootstraptest/test_literal_suffix.rb: add two test cases to
mrkn 2013-08-02 00:14:45 +0900 (Fri, 02 Aug 2013) New Revision: 42315 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42315 Log: * bootstraptest/test_literal_suffix.rb: add two test cases to examine that "1if true" and "1rescue nil" are recognized as 1. Modified files: trunk/ChangeLog trunk/bootstraptest/test_literal_suffix.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 42314) +++ ChangeLog (revision 42315) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Aug 2 00:02:00 2013 Kenta Murata <mrkn@m...> + + * 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@m...> * rational.c (rb_flt_rationalize_with_prec): new public C function Index: bootstraptest/test_literal_suffix.rb =================================================================== --- bootstraptest/test_literal_suffix.rb (revision 42314) +++ bootstraptest/test_literal_suffix.rb (revision 42315) @@ -37,6 +37,8 @@ assert_equal '0+6/5i', '1.2ri' https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_literal_suffix.rb#L37 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} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/