From dcd5d0ffec1a6cee3ff1eb81c7d819f8d23dde46 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Masaya Date: Wed, 11 Oct 2017 17:55:27 +0900 Subject: Test for MRB_WITHOUT_FLOAT --- test/t/array.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/t/array.rb') diff --git a/test/t/array.rb b/test/t/array.rb index 7c11265a4..d2edd0189 100644 --- a/test/t/array.rb +++ b/test/t/array.rb @@ -55,7 +55,7 @@ assert('Array#[]', '15.2.12.5.4') do assert_equal(nil, [1,2,3].[](-4)) a = [ "a", "b", "c", "d", "e" ] - assert_equal("b", a[1.1]) + assert_equal("b", a[1.1]) if class_defined?("Float") assert_equal(["b", "c"], a[1,2]) assert_equal(["b", "c", "d"], a[1..-2]) end -- cgit v1.2.3