summaryrefslogtreecommitdiff
path: root/spec/bundler/bundler
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-12-15 14:47:36 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-12-15 14:47:36 +0900
commite2b192f7d5b4f0e2133bb6cf03cfc609258826be (patch)
treea80b27431d00bc4e097c9d755de6ea0008552208 /spec/bundler/bundler
parentdb2ea9b0c5fb49a04af1b299a37e92f81d7cccd2 (diff)
rand(beginless_range) raise Errno::EDOM instead of TypeError
same as `rand(endless_range)` Before: ``` $ ruby -e 'rand(..1)' Traceback (most recent call last): 2: from -e:1:in `<main>' 1: from -e:1:in `rand' -e:1:in `-': nil can't be coerced into Integer (TypeError) ``` After: ``` $ ruby -e 'rand(..1)' Traceback (most recent call last): 1: from -e:1:in `<main>' -e:1:in `rand': Numerical argument out of domain (Errno::EDOM) ```
Diffstat (limited to 'spec/bundler/bundler')
0 files changed, 0 insertions, 0 deletions