Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use TestsForCodecPackages.jl #17

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@ name = "CodecBase"
uuid = "6c391c72-fb7b-5838-ba82-7cfb1bcfecbf"
license = "MIT"
authors = ["Kenta Sato <[email protected]>"]
version = "0.3.3"
version = "0.3.4"

[deps]
TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"

[compat]
TranscodingStreams = "0.9, 0.10, 0.11"
julia = "1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[targets]
test = ["Test", "Random"]
5 changes: 5 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[deps]
CodecBase = "6c391c72-fb7b-5838-ba82-7cfb1bcfecbf"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TestsForCodecPackages = "c2e61002-3542-480d-8b3c-5f05cc4f8554"
TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
19 changes: 7 additions & 12 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using CodecBase
using Test
using Random
import TranscodingStreams:
using TranscodingStreams:
TranscodingStreams,
TranscodingStream,
TranscodingStream
using TestsForCodecPackages:
test_roundtrip_read,
test_roundtrip_write,
test_roundtrip_lines,
test_roundtrip_seekstart,
test_roundtrip_transcode

@testset "DecodeError" begin
Expand Down Expand Up @@ -67,9 +68,7 @@ end
test_roundtrip_read(Base16EncoderStream, Base16DecoderStream)
test_roundtrip_write(Base16EncoderStream, Base16DecoderStream)
test_roundtrip_lines(Base16EncoderStream, Base16DecoderStream)
if isdefined(TranscodingStreams, :test_roundtrip_seekstart)
TranscodingStreams.test_roundtrip_seekstart(Base16EncoderStream, Base16DecoderStream)
end
test_roundtrip_seekstart(Base16EncoderStream, Base16DecoderStream)
test_roundtrip_transcode(Base16Encoder, Base16Decoder)
end

Expand Down Expand Up @@ -121,9 +120,7 @@ end
test_roundtrip_read(Base32EncoderStream, Base32DecoderStream)
test_roundtrip_write(Base32EncoderStream, Base32DecoderStream)
test_roundtrip_lines(Base32EncoderStream, Base32DecoderStream)
if isdefined(TranscodingStreams, :test_roundtrip_seekstart)
TranscodingStreams.test_roundtrip_seekstart(Base32EncoderStream, Base32DecoderStream)
end
test_roundtrip_seekstart(Base32EncoderStream, Base32DecoderStream)
test_roundtrip_transcode(Base32Encoder, Base32Decoder)
end

Expand Down Expand Up @@ -174,8 +171,6 @@ end
test_roundtrip_read(Base64EncoderStream, Base64DecoderStream)
test_roundtrip_write(Base64EncoderStream, Base64DecoderStream)
test_roundtrip_lines(Base64EncoderStream, Base64DecoderStream)
if isdefined(TranscodingStreams, :test_roundtrip_seekstart)
TranscodingStreams.test_roundtrip_seekstart(Base64EncoderStream, Base64DecoderStream)
end
test_roundtrip_seekstart(Base64EncoderStream, Base64DecoderStream)
test_roundtrip_transcode(Base64Encoder, Base64Decoder)
end
Loading