File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -186,14 +186,6 @@ struct MulticodecTests {
186186 #expect( throws: MulticodecError . UnknownCodecString) {
187187 try Codecs ( " this-codec-doesnt-exist " )
188188 }
189- // XCTAssertThrowsError(try Codecs("this-codec-doesnt-exist"), "hi") { (error) in
190- // switch error {
191- // case MulticodecError.UnknownCodecString:
192- // print(error)
193- // default:
194- // XCTFail("Wrong Error Message Thrown...")
195- // }
196- // }
197189 }
198190
199191 @Test func testGetCodecFromBufferWithUnknownCodec( ) throws {
@@ -207,28 +199,12 @@ struct MulticodecTests {
207199 #expect( throws: MulticodecError . UnknownCodecId) {
208200 try getCodec ( bytes: prefixedBuf)
209201 }
210- // XCTAssertThrowsError(try getCodec(bytes: prefixedBuf), "Unknown Codec Id") { (error) in
211- // switch error {
212- // case MulticodecError.UnknownCodecId:
213- // print(error)
214- // default:
215- // XCTFail("Wrong Error Message Thrown...")
216- // }
217- // }
218202 }
219203
220204 @Test func testPrefixBufferWithUnknownCodec( ) throws {
221205 let buf : [ UInt8 ] = Array ( " hey " . utf8)
222206 #expect( throws: MulticodecError . UnknownCodecId) {
223207 try addPrefix ( code: 0xffee , bytes: buf)
224208 }
225- // XCTAssertThrowsError(try addPrefix(code: 0xffee, bytes: buf), "Unknown Codec Id") { (error) in
226- // switch error {
227- // case MulticodecError.UnknownCodecId:
228- // print(error)
229- // default:
230- // XCTFail("Wrong Error Message Thrown...")
231- // }
232- // }
233209 }
234210}
You can’t perform that action at this time.
0 commit comments