File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ fileprivate struct MsgPackSerializationPerfTests: PerfTests {
4444 await measure {
4545 for _ in 1 ... iterations
4646 {
47- #expect( self . serializeScalarData ( ) != nil )
47+ #expect( ! self . serializeScalarData ( ) . byteString . isEmpty )
4848 }
4949 }
5050 }
@@ -91,7 +91,7 @@ fileprivate struct MsgPackSerializationPerfTests: PerfTests {
9191
9292 await measure {
9393 for _ in 1 ... iterations {
94- #expect( self . serializeStringData ( ) != nil )
94+ #expect( ! self . serializeStringData ( ) . byteString . isEmpty )
9595 }
9696 }
9797 }
@@ -133,7 +133,7 @@ fileprivate struct MsgPackSerializationPerfTests: PerfTests {
133133 await measure {
134134 for _ in 1 ... iterations
135135 {
136- #expect( self . serializeArrayData ( ) != nil )
136+ #expect( ! self . serializeArrayData ( ) . byteString . isEmpty )
137137 }
138138 }
139139 }
@@ -171,7 +171,7 @@ fileprivate struct MsgPackSerializationPerfTests: PerfTests {
171171
172172 await measure {
173173 for _ in 1 ... iterations {
174- #expect( self . serializeDictionaryData ( ) != nil )
174+ #expect( ! self . serializeDictionaryData ( ) . byteString . isEmpty )
175175 }
176176 }
177177 }
@@ -220,7 +220,7 @@ fileprivate struct MsgPackSerializationPerfTests: PerfTests {
220220 {
221221 for _ in 1 ... iterations
222222 {
223- #expect( self . serializeCustomElementData ( elements) != nil )
223+ #expect( ! self . serializeCustomElementData ( elements) . byteString . isEmpty )
224224 }
225225 }
226226 }
You can’t perform that action at this time.
0 commit comments