From 698d7947c300a5f5d63965fb2ccce59601f2563b Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Wed, 6 Jan 2021 14:41:13 +0900 Subject: [PATCH] [ruby/bigdecimal] Include TestBigDecimalBase in TestBigDecimalUtil https://github.com/ruby/bigdecimal/commit/f732201df1 --- test/bigdecimal/{testbase.rb => helper.rb} | 0 test/bigdecimal/test_bigdecimal.rb | 2 +- test/bigdecimal/test_bigdecimal_util.rb | 5 +++-- test/bigdecimal/test_bigmath.rb | 2 +- test/bigdecimal/test_ractor.rb | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) rename test/bigdecimal/{testbase.rb => helper.rb} (100%) diff --git a/test/bigdecimal/testbase.rb b/test/bigdecimal/helper.rb similarity index 100% rename from test/bigdecimal/testbase.rb rename to test/bigdecimal/helper.rb diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb index 55992348e0..74c991f47f 100644 --- a/test/bigdecimal/test_bigdecimal.rb +++ b/test/bigdecimal/test_bigdecimal.rb @@ -1,5 +1,5 @@ # frozen_string_literal: false -require_relative "testbase" +require_relative "helper" require 'bigdecimal/math' require 'rbconfig/sizeof' diff --git a/test/bigdecimal/test_bigdecimal_util.rb b/test/bigdecimal/test_bigdecimal_util.rb index b855fd58a0..3e3d9db13e 100644 --- a/test/bigdecimal/test_bigdecimal_util.rb +++ b/test/bigdecimal/test_bigdecimal_util.rb @@ -1,9 +1,10 @@ # frozen_string_literal: false -require_relative "testbase" - +require_relative "helper" require 'bigdecimal/util' class TestBigDecimalUtil < Test::Unit::TestCase + include TestBigDecimalBase + def test_BigDecimal_to_d x = BigDecimal(1) assert_same(x, x.to_d) diff --git a/test/bigdecimal/test_bigmath.rb b/test/bigdecimal/test_bigmath.rb index 6f271d0960..5bf1fbf318 100644 --- a/test/bigdecimal/test_bigmath.rb +++ b/test/bigdecimal/test_bigmath.rb @@ -1,5 +1,5 @@ # frozen_string_literal: false -require_relative "testbase" +require_relative "helper" require "bigdecimal/math" class TestBigMath < Test::Unit::TestCase diff --git a/test/bigdecimal/test_ractor.rb b/test/bigdecimal/test_ractor.rb index 3ccd7c8073..f78663f15e 100644 --- a/test/bigdecimal/test_ractor.rb +++ b/test/bigdecimal/test_ractor.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -require_relative "testbase" +require_relative "helper" class TestBigDecimalRactor < Test::Unit::TestCase include TestBigDecimalBase