Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lovetodream committed Nov 13, 2024
1 parent c1b222f commit e373a8b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,12 @@ final class ByteBufferExtensionTests: XCTestCase {
var locatorMissingBuffer = ByteBuffer(bytes: [1, 40, 0, 0, 0])
XCTAssertNil(try? locatorMissingBuffer.throwingReadOSON())
}

func testThrowingSkipUBThrowsOnMissingLength() {
var buffer = ByteBuffer()
XCTAssertThrowsError(
try buffer.throwingSkipUB4(),
expected: OraclePartialDecodingError.expectedAtLeastNRemainingBytes(1, actual: 0)
)
}
}

0 comments on commit e373a8b

Please sign in to comment.