Files
mruby-mruby/test/t
KOBAYASHI Shuji 0893ee492c Fix that String#to_f accepts consecutive _ as a numeric expression
Consecutive `_` is not allowed as a numeric expression:

  1_2__3             #=> SyntaxError
  Float("1_2__3")    #=> ArgumentError
  Integer("1_2__3")  #=> ArgumentError
  "1_2__3".to_i      #=> 12

But `String#to_f` accept it, so I fixed the issue.

Before this patch:

  "1_2__3".to_f      #=> 123

After this patch:

  "1_2__3".to_f      #=> 12
2019-12-09 21:47:59 +09:00
..
2013-06-14 21:35:49 +08:00
2019-09-07 22:27:30 +09:00
2018-08-25 09:19:17 +09:00
2014-04-30 09:50:14 +09:00
2019-01-05 20:41:09 +09:00
2019-03-25 21:39:11 +09:00
2019-10-03 16:59:18 +09:00
2016-12-01 16:48:43 +09:00