mirror of
https://github.com/apple/swift-numerics
synced 2026-11-26 04:57:53 +00:00
[BigIntTests] Add testFloatingPoint_signalingNaN()
This commit is contained in:
1 parent
4c425513cd
commit
bf9afea2eb
1 file changed
+6
@@ -410,6 +410,12 @@ final class BigIntTests: XCTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
func testFloatingPoint_signalingNaN() {
|
||||
XCTAssertNil(BigInt(exactly: Float32.signalingNaN))
|
||||
XCTAssertNil(BigInt(exactly: Float64.signalingNaN))
|
||||
XCTAssertNil(BigInt(exactly: FloatXX.signalingNaN))
|
||||
}
|
||||
|
||||
func testFloatingPoint_zero() {
|
||||
XCTAssertEqual(BigInt(exactly: -Float32.zero), 0)
|
||||
XCTAssertEqual(BigInt(exactly: -Float64.zero), 0)
|
||||
|
||||
Reference in new issue
Block a user