diff options
Diffstat (limited to 'spec/ruby/library/complex/math')
34 files changed, 53 insertions, 53 deletions
diff --git a/spec/ruby/library/complex/math/acos_spec.rb b/spec/ruby/library/complex/math/acos_spec.rb index 84425dbaa1..c7b2362a2c 100644 --- a/spec/ruby/library/complex/math/acos_spec.rb +++ b/spec/ruby/library/complex/math/acos_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/acos', __FILE__) +require_relative 'shared/acos' describe "Math#acos" do it_behaves_like :complex_math_acos, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/acosh_spec.rb b/spec/ruby/library/complex/math/acosh_spec.rb index cda9ce38d6..33adb73b64 100644 --- a/spec/ruby/library/complex/math/acosh_spec.rb +++ b/spec/ruby/library/complex/math/acosh_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/acosh', __FILE__) +require_relative 'shared/acosh' describe "Math#acosh" do it_behaves_like :complex_math_acosh, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/asin_spec.rb b/spec/ruby/library/complex/math/asin_spec.rb index aa26bed11d..f0647bbc14 100644 --- a/spec/ruby/library/complex/math/asin_spec.rb +++ b/spec/ruby/library/complex/math/asin_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/asin', __FILE__) +require_relative 'shared/asin' describe "Math#asin" do it_behaves_like :complex_math_asin, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/asinh_spec.rb b/spec/ruby/library/complex/math/asinh_spec.rb index a1b0816b33..ef93a9dc22 100644 --- a/spec/ruby/library/complex/math/asinh_spec.rb +++ b/spec/ruby/library/complex/math/asinh_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/asinh', __FILE__) +require_relative 'shared/asinh' describe "Math#asinh" do it_behaves_like :complex_math_asinh, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/atan2_spec.rb b/spec/ruby/library/complex/math/atan2_spec.rb index 7111b4a8ec..46874f89e4 100644 --- a/spec/ruby/library/complex/math/atan2_spec.rb +++ b/spec/ruby/library/complex/math/atan2_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/atan2', __FILE__) +require_relative 'shared/atan2' describe "Math#atan2" do it_behaves_like :complex_math_atan2, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/atan_spec.rb b/spec/ruby/library/complex/math/atan_spec.rb index 6659b309e4..e60c088b5e 100644 --- a/spec/ruby/library/complex/math/atan_spec.rb +++ b/spec/ruby/library/complex/math/atan_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/atan', __FILE__) +require_relative 'shared/atan' describe "Math#atan" do it_behaves_like :complex_math_atan, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/atanh_spec.rb b/spec/ruby/library/complex/math/atanh_spec.rb index a68674f82c..b8eaec3a09 100644 --- a/spec/ruby/library/complex/math/atanh_spec.rb +++ b/spec/ruby/library/complex/math/atanh_spec.rb @@ -1,8 +1,8 @@ require 'complex' -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../../../../fixtures/math/common', __FILE__) -require File.expand_path('../../../../shared/math/atanh', __FILE__) -require File.expand_path('../shared/atanh', __FILE__) +require_relative '../../../spec_helper' +require_relative '../../../fixtures/math/common' +require_relative '../../../shared/math/atanh' +require_relative 'shared/atanh' describe "Math#atanh" do it_behaves_like :math_atanh_base, :atanh, IncludesMath.new diff --git a/spec/ruby/library/complex/math/cos_spec.rb b/spec/ruby/library/complex/math/cos_spec.rb index 4267c601a6..847acb7fa2 100644 --- a/spec/ruby/library/complex/math/cos_spec.rb +++ b/spec/ruby/library/complex/math/cos_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/cos', __FILE__) +require_relative 'shared/cos' describe "Math#cos" do it_behaves_like :complex_math_cos, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/cosh_spec.rb b/spec/ruby/library/complex/math/cosh_spec.rb index b3aa1bdb69..c0a87d4865 100644 --- a/spec/ruby/library/complex/math/cosh_spec.rb +++ b/spec/ruby/library/complex/math/cosh_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/cosh', __FILE__) +require_relative 'shared/cosh' describe "Math#cosh" do it_behaves_like :complex_math_cosh, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/exp_spec.rb b/spec/ruby/library/complex/math/exp_spec.rb index df1d12bbb5..e1e51f7948 100644 --- a/spec/ruby/library/complex/math/exp_spec.rb +++ b/spec/ruby/library/complex/math/exp_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/exp', __FILE__) +require_relative 'shared/exp' describe "Math#exp" do it_behaves_like :complex_math_exp, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/log10_spec.rb b/spec/ruby/library/complex/math/log10_spec.rb index c7c5717873..295189ae53 100644 --- a/spec/ruby/library/complex/math/log10_spec.rb +++ b/spec/ruby/library/complex/math/log10_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/log10', __FILE__) +require_relative 'shared/log10' describe "Math#log10" do it_behaves_like :complex_math_log10, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/log_spec.rb b/spec/ruby/library/complex/math/log_spec.rb index f55b406af8..6d80d045c9 100644 --- a/spec/ruby/library/complex/math/log_spec.rb +++ b/spec/ruby/library/complex/math/log_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/log', __FILE__) +require_relative 'shared/log' describe "Math#log" do it_behaves_like :complex_math_log, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/shared/acos.rb b/spec/ruby/library/complex/math/shared/acos.rb index 7a9e0fe1b2..61be31571f 100644 --- a/spec/ruby/library/complex/math/shared/acos.rb +++ b/spec/ruby/library/complex/math/shared/acos.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_acos, shared: true do it "returns the arccosine of the passed argument" do diff --git a/spec/ruby/library/complex/math/shared/acosh.rb b/spec/ruby/library/complex/math/shared/acosh.rb index b8be750f13..a2cd887f95 100644 --- a/spec/ruby/library/complex/math/shared/acosh.rb +++ b/spec/ruby/library/complex/math/shared/acosh.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_acosh, shared: true do it "returns the principle value of the inverse hyperbolic cosine of the argument" do diff --git a/spec/ruby/library/complex/math/shared/asin.rb b/spec/ruby/library/complex/math/shared/asin.rb index 3b446cbe24..1705745210 100644 --- a/spec/ruby/library/complex/math/shared/asin.rb +++ b/spec/ruby/library/complex/math/shared/asin.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_asin, shared: true do it "returns the arcsine of the argument" do diff --git a/spec/ruby/library/complex/math/shared/asinh.rb b/spec/ruby/library/complex/math/shared/asinh.rb index 4c2f6c8b5d..b4256e7475 100644 --- a/spec/ruby/library/complex/math/shared/asinh.rb +++ b/spec/ruby/library/complex/math/shared/asinh.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_asinh, shared: true do it "returns the inverse hyperbolic sin of the argument" do diff --git a/spec/ruby/library/complex/math/shared/atan.rb b/spec/ruby/library/complex/math/shared/atan.rb index 44fa65e1e9..46c1897407 100644 --- a/spec/ruby/library/complex/math/shared/atan.rb +++ b/spec/ruby/library/complex/math/shared/atan.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_atan, shared: true do it "returns the arctangent of the argument" do diff --git a/spec/ruby/library/complex/math/shared/atan2.rb b/spec/ruby/library/complex/math/shared/atan2.rb index add1dcd6fa..3305d695c5 100644 --- a/spec/ruby/library/complex/math/shared/atan2.rb +++ b/spec/ruby/library/complex/math/shared/atan2.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_atan2, shared: true do it "returns the arc tangent of the passed arguments" do diff --git a/spec/ruby/library/complex/math/shared/atanh.rb b/spec/ruby/library/complex/math/shared/atanh.rb index 4051af081f..ebd4d7c223 100644 --- a/spec/ruby/library/complex/math/shared/atanh.rb +++ b/spec/ruby/library/complex/math/shared/atanh.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_atanh_complex, shared: true do it "returns the inverse hyperbolic tangent as a Complex number for arguments greater than 1.0" do diff --git a/spec/ruby/library/complex/math/shared/cos.rb b/spec/ruby/library/complex/math/shared/cos.rb index ab198e1a3b..ddd8512231 100644 --- a/spec/ruby/library/complex/math/shared/cos.rb +++ b/spec/ruby/library/complex/math/shared/cos.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_cos, shared: true do it "returns the cosine of the argument expressed in radians" do diff --git a/spec/ruby/library/complex/math/shared/cosh.rb b/spec/ruby/library/complex/math/shared/cosh.rb index a5f98e4e83..a56a655cd5 100644 --- a/spec/ruby/library/complex/math/shared/cosh.rb +++ b/spec/ruby/library/complex/math/shared/cosh.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_cosh, shared: true do it "returns the hyperbolic cosine of the passed argument" do diff --git a/spec/ruby/library/complex/math/shared/exp.rb b/spec/ruby/library/complex/math/shared/exp.rb index f4e73dfb4d..91ab5739be 100644 --- a/spec/ruby/library/complex/math/shared/exp.rb +++ b/spec/ruby/library/complex/math/shared/exp.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_exp, shared: true do it "returns the base-e exponential of the passed argument" do diff --git a/spec/ruby/library/complex/math/shared/log.rb b/spec/ruby/library/complex/math/shared/log.rb index 4e5385748a..f3aad0d66a 100644 --- a/spec/ruby/library/complex/math/shared/log.rb +++ b/spec/ruby/library/complex/math/shared/log.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_log, shared: true do it "returns the natural logarithm of the passed argument" do diff --git a/spec/ruby/library/complex/math/shared/log10.rb b/spec/ruby/library/complex/math/shared/log10.rb index 13518f243e..a2cf5344bf 100644 --- a/spec/ruby/library/complex/math/shared/log10.rb +++ b/spec/ruby/library/complex/math/shared/log10.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_log10, shared: true do it "returns the base-10 logarithm of the passed argument" do diff --git a/spec/ruby/library/complex/math/shared/sin.rb b/spec/ruby/library/complex/math/shared/sin.rb index e5b207b456..418ba5d810 100644 --- a/spec/ruby/library/complex/math/shared/sin.rb +++ b/spec/ruby/library/complex/math/shared/sin.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_sin, shared: true do it "returns the sine of the passed argument expressed in radians" do diff --git a/spec/ruby/library/complex/math/shared/sinh.rb b/spec/ruby/library/complex/math/shared/sinh.rb index abbe2c6da0..bd85bd0799 100644 --- a/spec/ruby/library/complex/math/shared/sinh.rb +++ b/spec/ruby/library/complex/math/shared/sinh.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_sinh, shared: true do it "returns the hyperbolic sin of the argument" do diff --git a/spec/ruby/library/complex/math/shared/sqrt.rb b/spec/ruby/library/complex/math/shared/sqrt.rb index 5125710119..b6a289c3f9 100644 --- a/spec/ruby/library/complex/math/shared/sqrt.rb +++ b/spec/ruby/library/complex/math/shared/sqrt.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_sqrt, shared: true do it "returns the square root for positive numbers" do diff --git a/spec/ruby/library/complex/math/shared/tan.rb b/spec/ruby/library/complex/math/shared/tan.rb index 02a1880d27..df7a6ff19b 100644 --- a/spec/ruby/library/complex/math/shared/tan.rb +++ b/spec/ruby/library/complex/math/shared/tan.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_tan, shared: true do it "returns the tangent of the argument" do diff --git a/spec/ruby/library/complex/math/shared/tanh.rb b/spec/ruby/library/complex/math/shared/tanh.rb index a26b1349f6..7bf07f9a3f 100644 --- a/spec/ruby/library/complex/math/shared/tanh.rb +++ b/spec/ruby/library/complex/math/shared/tanh.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/classes', __FILE__) +require_relative '../fixtures/classes' describe :complex_math_tanh, shared: true do it "returns the hyperbolic tangent of the argument" do diff --git a/spec/ruby/library/complex/math/sin_spec.rb b/spec/ruby/library/complex/math/sin_spec.rb index bbc36ecaab..6046cd29c3 100644 --- a/spec/ruby/library/complex/math/sin_spec.rb +++ b/spec/ruby/library/complex/math/sin_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/sin', __FILE__) +require_relative 'shared/sin' describe "Math#sin" do it_behaves_like :complex_math_sin, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/sinh_spec.rb b/spec/ruby/library/complex/math/sinh_spec.rb index 25a41fbc45..f5f98778b2 100644 --- a/spec/ruby/library/complex/math/sinh_spec.rb +++ b/spec/ruby/library/complex/math/sinh_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/sinh', __FILE__) +require_relative 'shared/sinh' describe "Math#sinh" do it_behaves_like :complex_math_sinh, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/sqrt_spec.rb b/spec/ruby/library/complex/math/sqrt_spec.rb index 19d58ce373..8b7050c108 100644 --- a/spec/ruby/library/complex/math/sqrt_spec.rb +++ b/spec/ruby/library/complex/math/sqrt_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/sqrt', __FILE__) +require_relative 'shared/sqrt' describe "Math#sqrt" do it_behaves_like :complex_math_sqrt, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/tan_spec.rb b/spec/ruby/library/complex/math/tan_spec.rb index 3c5bc6b129..b0f18bb515 100644 --- a/spec/ruby/library/complex/math/tan_spec.rb +++ b/spec/ruby/library/complex/math/tan_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/tan', __FILE__) +require_relative 'shared/tan' describe "Math#tan" do it_behaves_like :complex_math_tan, :_, IncludesMath.new diff --git a/spec/ruby/library/complex/math/tanh_spec.rb b/spec/ruby/library/complex/math/tanh_spec.rb index f9d99347b8..469bba7554 100644 --- a/spec/ruby/library/complex/math/tanh_spec.rb +++ b/spec/ruby/library/complex/math/tanh_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'complex' -require File.expand_path('../shared/tanh', __FILE__) +require_relative 'shared/tanh' describe "Math#tanh" do it_behaves_like :complex_math_tanh, :_, IncludesMath.new |