Skip to content

Commit 935ceac

Browse files
committed
Add exp test
1 parent 9001739 commit 935ceac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

BigReal.Tests/BigRealTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ public void PowRootTest() {
4444
ShouldBeApproximatelyEqual(BigReal.Pow(three, 1 / seven), 1.16993, 5);
4545
ShouldBeApproximatelyEqual(BigReal.Pow(three, 1 / seven, decimals: 40), 1.16993, 5); // Slow
4646
}
47+
[Fact]
48+
public void ExpTest() {
49+
ShouldBeApproximatelyEqual(BigReal.Exp(5.3), 200.33681, 5);
50+
ShouldBeApproximatelyEqual(BigReal.Exp(5.3, decimals: 40), 200.33681, 3); // Slow (slightly)
51+
}
4752
[Theory]
4853
[InlineData(false)]
4954
[InlineData(true)]

0 commit comments

Comments
 (0)