summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2021-01-06 14:41:13 +0900
committerKenta Murata <mrkn@mrkn.jp>2021-01-07 10:19:46 +0900
commit698d7947c300a5f5d63965fb2ccce59601f2563b (patch)
treebb2b4208d67906cd0069059b784061cc191d89f3
parent939729dd823ff5a71c7f203b8d6e5e5976e31d4f (diff)
[ruby/bigdecimal] Include TestBigDecimalBase in TestBigDecimalUtil
https://github.com/ruby/bigdecimal/commit/f732201df1
-rw-r--r--test/bigdecimal/helper.rb (renamed from test/bigdecimal/testbase.rb)0
-rw-r--r--test/bigdecimal/test_bigdecimal.rb2
-rw-r--r--test/bigdecimal/test_bigdecimal_util.rb5
-rw-r--r--test/bigdecimal/test_bigmath.rb2
-rw-r--r--test/bigdecimal/test_ractor.rb2
5 files changed, 6 insertions, 5 deletions
diff --git a/test/bigdecimal/testbase.rb b/test/bigdecimal/helper.rb
index 22b05f0..22b05f0 100644
--- a/test/bigdecimal/testbase.rb
+++ b/test/bigdecimal/helper.rb
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb
index 5599234..74c991f 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 b855fd5..3e3d9db 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 6f271d0..5bf1fbf 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 3ccd7c8..f78663f 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