mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlibunittest] More de-boilerplating WIP
Step 2. Swift SVN r29936
This commit is contained in:
@@ -118,10 +118,11 @@ class CodecTest<Codec : TestableUnicodeCodec> {
|
||||
default:
|
||||
fatalError("decoding failed")
|
||||
}
|
||||
expectEqual(scalar, decoded) {
|
||||
expectEqual(
|
||||
scalar, decoded,
|
||||
"Decoding failed: \(asHex(scalar.value)) => " +
|
||||
"\(asHex(nsEncoded)) => \(asHex(decoded.value))"
|
||||
}
|
||||
"\(asHex(nsEncoded)) => \(asHex(decoded.value))"
|
||||
)
|
||||
|
||||
encodeIndex = encodeBuffer.startIndex
|
||||
Codec.encode(scalar, output: encodeOutput)
|
||||
|
||||
Reference in New Issue
Block a user