Skip to content

Commit 3e440c0

Browse files
committed
Apply review comments for tests
1 parent 5b4ff7d commit 3e440c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/bigdecimal/test_bigmath.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@ def test_tan
5757
assert_in_delta(0.0, tan(BigDecimal("0.0"), N))
5858
assert_in_delta(0.0, tan(PI(N), N))
5959
assert_in_delta(1.0, tan(PI(N) / 4, N))
60-
assert_in_delta(Math.sqrt(3.0), tan(PI(N) / 3, N))
60+
assert_in_delta(sqrt(BigDecimal(3), N), tan(PI(N) / 3, N))
61+
assert_in_delta(sqrt(BigDecimal(3), 10 * N), tan(PI(10 * N) / 3, 10 * N))
6162
assert_in_delta(0.0, tan(-PI(N), N))
6263
assert_in_delta(-1.0, tan(-PI(N) / 4, N))
63-
assert_in_delta(-Math.sqrt(3.0), tan(-PI(N) / 3, N))
64+
assert_in_delta(-sqrt(BigDecimal(3), N), tan(-PI(N) / 3, N))
6465
end
6566

6667
def test_atan

0 commit comments

Comments
 (0)