Sha256: 3c0abd1e8935510695c841bfebb8f3fc163cc076647a26e33dd1bcc5a03a3abc
Contents?: true
Size: 885 Bytes
Versions: 7
Compression:
Stored size: 885 Bytes
Contents
# frozen_string_literal: true require "minitest/autorun" require "rcd_test" class TestBasic < Minitest::Test def test_do_something assert_equal "something has been done", RcdTest.do_something end def test_check_darwin_compiler_rt_symbol_resolution skip("jruby should not run libc-specific tests") if RUBY_ENGINE == "jruby" if RUBY_PLATFORM.include?("darwin") assert(RcdTest.darwin_builtin_available?) else e = assert_raises(RuntimeError) { RcdTest.darwin_builtin_available? } assert_equal("__builtin_available is not defined", e.message) end end def test_floating_point_classification_macros skip("jruby should not run libc-specific tests") if RUBY_ENGINE == "jruby" refute(RcdTest.isinf?(42.0)) assert(RcdTest.isinf?(Float::INFINITY)) refute(RcdTest.isnan?(42.0)) assert(RcdTest.isnan?(Float::NAN)) end end
Version data entries
7 entries across 7 versions & 1 rubygems