Skip to content

Commit

Permalink
fix tests on x86
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 committed Apr 4, 2024
1 parent f26655e commit c9b062b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions test/codecnoop.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
close(stream)

stream = TranscodingStream(Noop(), IOBuffer(b"foobarbaz"))
@test position(stream) === 0
@test position(stream) === Int64(0)
read(stream, UInt8)
@test position(stream) === 1
@test position(stream) === Int64(1)
read(stream)
@test position(stream) === 9
@test position(stream) === Int64(9)

data = collect(0x00:0x0f)
stream = TranscodingStream(Noop(), IOBuffer(data))
Expand Down
12 changes: 6 additions & 6 deletions test/codecquadruple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@ end
close(stream)

stream = TranscodingStream(QuadrupleCodec(), IOBuffer("foo"))
@test position(stream) === 0
@test position(stream) === Int64(0)
read(stream, 3)
@test position(stream) === 3
@test position(stream) === Int64(3)
read(stream, UInt8)
@test position(stream) === 4
@test position(stream) === Int64(4)
close(stream)

stream = TranscodingStream(QuadrupleCodec(), IOBuffer())
@test position(stream) === 0
@test position(stream) === Int64(0)
write(stream, 0x00)
@test position(stream) === 1
@test position(stream) === Int64(1)
write(stream, "foo")
@test position(stream) === 4
@test position(stream) === Int64(4)
close(stream)

# Buffers are shared.
Expand Down

0 comments on commit c9b062b

Please sign in to comment.