Skip to content

Commit 1fb5fb3

Browse files
committed
Add test for pow(_: Decimal, _: Int)
1 parent 00fd2a0 commit 1fb5fb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

TestFoundation/TestDecimal.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ class TestDecimal: XCTestCase {
417417
XCTAssertEqual(.noError, NSDecimalPower(&actual, &power, j, .plain))
418418
let expected = Decimal(pow(Double(i), Double(j)))
419419
XCTAssertEqual(expected, actual, "\(actual) == \(i)^\(j)")
420+
XCTAssertEqual(expected, pow(power, j))
420421
}
421422
}
422423
}

0 commit comments

Comments
 (0)