Skip to content

Commit a4f9d82

Browse files
committed
removed old code
1 parent c294e94 commit a4f9d82

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

Tests/MulticodecTests/MulticodecTests.swift

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)