mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-04-27 15:07:41 +00:00
fix: resolve Swift test compilation issue with allSatisfy closure
This commit is contained in:
parent
68b5f6eca7
commit
dc0b29b0b1
1 changed files with 4 additions and 1 deletions
|
|
@ -283,7 +283,10 @@ struct JSONOutputTests {
|
||||||
|
|
||||||
for errorCode in errorCodes {
|
for errorCode in errorCodes {
|
||||||
#expect(!errorCode.rawValue.isEmpty)
|
#expect(!errorCode.rawValue.isEmpty)
|
||||||
#expect(errorCode.rawValue.allSatisfy(\.isASCII))
|
let isAllASCII = errorCode.rawValue.allSatisfy { character in
|
||||||
|
character.isASCII
|
||||||
|
}
|
||||||
|
#expect(isAllASCII)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue