From c9b062b25a480d4d2294f493e1c3493178f9c0fb Mon Sep 17 00:00:00 2001 From: nhz2 Date: Thu, 4 Apr 2024 13:55:57 -0400 Subject: [PATCH] fix tests on x86 --- test/codecnoop.jl | 6 +++--- test/codecquadruple.jl | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/codecnoop.jl b/test/codecnoop.jl index b1284d35..8b988749 100644 --- a/test/codecnoop.jl +++ b/test/codecnoop.jl @@ -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)) diff --git a/test/codecquadruple.jl b/test/codecquadruple.jl index 1e17db94..31a0ef53 100644 --- a/test/codecquadruple.jl +++ b/test/codecquadruple.jl @@ -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.