Skip to content

Commit b0a3727

Browse files
vivkongbryanpkc
authored andcommitted
Fixed Unimplemented error in UnsafePointer test case
1 parent 3b39a03 commit b0a3727

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/1_stdlib/UnsafePointer.swift.gyb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ UnsafePointerTestSuite.test("customMirror") {
331331
expectEqual(1, mirror.children.count)
332332
#if arch(i386) || arch(arm)
333333
expectEqual("18446744071562067968", String(mirror.children.first!.1))
334-
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le)
334+
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le) || arch(s390x)
335335
expectEqual("9223372036854775808", String(mirror.children.first!.1))
336336
#else
337337
fatalError("Unimplemented")
@@ -346,7 +346,7 @@ UnsafePointerTestSuite.test("customPlaygroundQuickLook") {
346346
if case let .text(desc) = ptr.customPlaygroundQuickLook {
347347
#if arch(i386) || arch(arm)
348348
expectEqual("UnsafePointer(0xFFFFFFFF80000000)", desc)
349-
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le)
349+
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le) || arch(s390x)
350350
expectEqual("UnsafePointer(0x8000000000000000)", desc)
351351
#else
352352
fatalError("Unimplemented")
@@ -363,7 +363,7 @@ UnsafeMutablePointerTestSuite.test("customMirror") {
363363
expectEqual(1, mirror.children.count)
364364
#if arch(i386) || arch(arm)
365365
expectEqual("18446744071562067968", String(mirror.children.first!.1))
366-
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le)
366+
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le) || arch(s390x)
367367
expectEqual("9223372036854775808", String(mirror.children.first!.1))
368368
#else
369369
fatalError("Unimplemented")
@@ -377,7 +377,7 @@ UnsafeMutablePointerTestSuite.test("customPlaygroundQuickLook") {
377377
if case let .text(desc) = ptr.customPlaygroundQuickLook {
378378
#if arch(i386) || arch(arm)
379379
expectEqual("UnsafeMutablePointer(0xFFFFFFFF80000000)", desc)
380-
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le)
380+
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le) || arch(s390x)
381381
expectEqual("UnsafeMutablePointer(0x8000000000000000)", desc)
382382
#else
383383
fatalError("Unimplemented")

0 commit comments

Comments
 (0)