summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-kernel-ext/test/kernel.rb
AgeCommit message (Collapse)Author
2020-01-06Fix `mrb_str_len_to_dbl` to support Hexadecimal like `0x10`.Yukihiro "Matz" Matsumoto
2019-12-11Fix behavior of `Kernel#Integer` to numbers ending with `_` and spacesKOBAYASHI Shuji
#### Before this patch: ```ruby Integer("1_ ") #=> 1 ``` #### After this patch (same as Ruby): ```ruby Integer("1_ ") #=> ArgumentError ```
2019-12-10Fix behavior of `String#to_i`/`Kernel#Integer` to numbers starting with `_`KOBAYASHI Shuji
#### Before this patch: ```ruby Integer("_1") #=> 1 "_1".to_i #=> 1 ``` #### After this patch (same as Ruby): ```ruby Integer("_1") #=> ArgumentError "_1".to_i #=> 0 ```
2019-12-09Fix that `String#to_f` accepts consecutive `_` as a numeric expressionKOBAYASHI Shuji
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-05-08Use `mrb_string_value_cstr` in `mrb_str_to_dbl`KOBAYASHI Shuji
2019-01-03Remove `Kernel#class_defined?` which is not available in CRuby; #3829Yukihiro "Matz" Matsumoto
2017-10-16Support MRB_WIHTOUT_FLOAT to mruby-kernel-extYAMAMOTO Masaya
2017-05-23Remove class info from backtrace lines.Yukihiro "Matz" Matsumoto
2017-03-25Fix lost linenoksss
2017-01-14Skip when backtrace doesn't getksss
2017-01-14Implement Kernel.#callerksss
2016-01-14Add tests which passes all zero string to Kernel#IntegerSyohei YOSHIDA
2014-10-29Add Kernel.IntegerJun Hiroe
2014-10-24Add Kernel.FloatJun Hiroe
2014-10-21Add Kernel.HashJun Hiroe
2014-10-20Add Kernel.StringJun Hiroe
2014-10-19Add Kernel.ArrayJun Hiroe
2014-05-09Move `__method__` to mruby-kernel-ext since it's not ISO method.take_cheeze
2014-05-07Move Kernel#fail definition to mruby-kernel-ext mrbgem.take_cheeze