Commit 7941dfb4 authored by Masamitsu MURASE's avatar Masamitsu MURASE

Enable test for `Range#initialize`.

parent 21ebb7f2
...@@ -48,14 +48,13 @@ assert('Range#include', '15.2.14.4.8') do ...@@ -48,14 +48,13 @@ assert('Range#include', '15.2.14.4.8') do
a.include?(5) and not a.include?(20) a.include?(5) and not a.include?(20)
end end
# TODO SEGFAULT ATM assert('Range#initialize', '15.2.14.4.9') do
#assert('Range#initialize', '15.2.14.4.9') do a = Range.new(1, 10, true)
# a = Range.new(1, 10, true) b = Range.new(1, 10, false)
# b = Range.new(1, 10, false)
# a == (1...10) and a.exclude_end? and b == (1..10) and
# a == (1..10) and a.exclude_end? and b == (1..10) and not b.exclude_end?
# not b.exclude_end? end
#end
assert('Range#last', '15.2.14.4.10') do assert('Range#last', '15.2.14.4.10') do
(1..10).last == 10 (1..10).last == 10
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment