summaryrefslogtreecommitdiff
path: root/test/ruby/test_integer.rb
AgeCommit message (Expand)Author
2023-11-29[Bug #17037] Improve accuracy of division near precision limitsNobuyoshi Nakada
2023-09-07Rewrite Integer#times in Ruby (#8388)Takashi Kokubun
2023-08-31[Bug #19349] Respect `#to_int` of `base` argumentNobuyoshi Nakada
2023-08-31Separate test for `Kernel#Integer` with `base` argumentNobuyoshi Nakada
2023-01-22Fix Integer#ceildiv to respect #coerce (#7118)Kouhei Yanagita
2023-01-08[Bug #19323] Raise `RangeError` instead of integer overflowNobuyoshi Nakada
2022-10-20[Bug #18998] Honor `#to_str` next to `#to_int` in `Kernel#Integer`Nobuyoshi Nakada
2022-08-12Add Numeric#ceildiv and Integer#ceildivKouhei Yanagita
2021-12-01Don't call + and < in Integer.times for !FIXNUMJeremy Evans
2021-07-29Improve performance of Integer#digitsJeremy Evans
2021-07-16Add Integer.try_convert [Feature #15211]Nobuyoshi Nakada
2020-09-30Fix unsigned int overflow in error message for chrPeter Zhu
2019-10-21bignum.c (estimate_initial_sqrt): prevent integer overflowYusuke Endoh
2019-07-12Fixed duplicate test nameNobuyoshi Nakada
2019-07-11Check exception flag as a bool [Bug #15987]Nobuyoshi Nakada
2019-04-28numeric.c: Extend Integer#[] to support range argumentsYusuke Endoh
2019-04-28test/ruby/test_integer.rb: Add a sane test for Integer#[]Yusuke Endoh
2019-01-12No FloatDomainError at non-finitive number if exception: falsenobu
2018-12-06Warn redefinitions of some methods on Objectnobu
2018-10-02Fix Rational of Floatnobu
2018-09-29rational.c: may be floatnobu
2018-07-22object.c: prefer base optargnobu
2018-03-15Add `exception:` keyword in Kernel#Integer()mrkn
2018-02-26Check the result of to_int in Kernel#Integermrkn
2017-09-22numeric.c: use NUM2DBLnobu
2017-05-06make Integer#{round,floor,ceil,truncate} always return integerstomar
2017-04-16test_integer.rb: simplify teststomar
2017-04-15bignum.c: fix inexact estimationnobu
2017-02-24Integer.sqrt argument checknobu
2017-02-24Integer.sqrt [Feature #13219]nobu
2016-12-10internal.h: change the default rounding mode to half-upmrkn
2016-11-25round-downnobu
2016-11-05numeric.c: round to nearest evennobu
2016-11-01numeric.c: bit op with non-integernobu
2016-11-01test_integer.rb: common partsnobu
2016-10-27object.c: fixable float to fixnumnobu
2016-10-27object.c: use converted stringnobu
2016-06-13numeric.c: Add Integer#digits [Feature #12447] [ruby-core:75799]mrkn
2016-05-17[Feature #12005] Unify Fixnum and Bignum into Integerakr
2016-04-18numeric.c: int_truncatenobu
2016-04-13numeric.c: int_ceilnobu
2016-04-13numeric.c: int_floornobu
2016-04-08bignum.c: rb_cstr_parse_inumnobu
2016-03-26test_integer.rb: refine test_roundnobu
2016-03-17* bignum.c (Bignum#even?, Bignum#odd?): remove definitionsmrkn
2015-12-16Add frozen_string_literal: false for all filesnaruse
2013-12-13test/ruby: better assertionsnobu
2013-08-31* bignum.c (rb_big_bit_length): New method.akr
2012-12-22* include/ruby/intern.h: add the prototype declaration ofmrkn
2012-03-23* bignum.c (rb_str_to_inum): must be ASCII compatible encoding asnobu