Skip to content

Commit db664fb

Browse files
committed
[test] shorten a 32-bit small string (sometimes)
1 parent 791dd4c commit db664fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/stdlib/StringDeconstruction.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ func id<T>(_ a: T) -> T { a }
9494
StringDeconstructTests.test("deconstruct") {
9595
let smallASCII = "abcd"
9696

97-
#if _pointerBitWidth(_32)
97+
#if _pointerBitWidth(_32) && os(watchOS)
9898
let smallUTF8 = "ジッパ"
99+
#elseif _pointerBitWidth(_32)
100+
let smallUTF8 = "ジッ"
99101
#else
100102
let smallUTF8 = "ジッパー"
101103
#endif

0 commit comments

Comments
 (0)