File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -865,7 +865,11 @@ class TestNSNumber : XCTestCase {
865
865
XCTAssertEqual ( nanFloat. int32Value, 0 )
866
866
XCTAssertEqual ( nanFloat. uint32Value, 0 )
867
867
XCTAssertEqual ( nanFloat. int64Value, Int64 ( bitPattern: 1 << 63 ) )
868
+ #if arch(powerpc64le)
869
+ XCTAssertEqual ( nanFloat. uint64Value, UInt64 ( bitPattern: 1 << 63 | 1 << 31 ) )
870
+ #else
868
871
XCTAssertEqual ( nanFloat. uint64Value, UInt64 ( bitPattern: 1 << 63 ) )
872
+ #endif
869
873
}
870
874
871
875
func test_numberWithDouble( ) {
@@ -910,8 +914,11 @@ class TestNSNumber : XCTestCase {
910
914
XCTAssertEqual ( nanDouble. int32Value, 0 )
911
915
XCTAssertEqual ( nanDouble. uint32Value, 0 )
912
916
XCTAssertEqual ( nanDouble. int64Value, Int64 ( bitPattern: 1 << 63 ) )
917
+ #if arch(powerpc64le)
918
+ XCTAssertEqual ( nanDouble. uint64Value, UInt64 ( bitPattern: 1 << 63 | 1 << 31 ) )
919
+ #else
913
920
XCTAssertEqual ( nanDouble. uint64Value, UInt64 ( bitPattern: 1 << 63 ) )
914
-
921
+ #endif
915
922
}
916
923
917
924
func test_compareNumberWithBool( ) {
You can’t perform that action at this time.
0 commit comments