diff --git a/Project.toml b/Project.toml index 5fa9ee9..db4fe7b 100644 --- a/Project.toml +++ b/Project.toml @@ -2,7 +2,7 @@ name = "CodecBase" uuid = "6c391c72-fb7b-5838-ba82-7cfb1bcfecbf" license = "MIT" authors = ["Kenta Sato "] -version = "0.3.3" +version = "0.3.4" [deps] TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa" @@ -10,10 +10,3 @@ 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"] diff --git a/test/Project.toml b/test/Project.toml new file mode 100644 index 0000000..7f35531 --- /dev/null +++ b/test/Project.toml @@ -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" diff --git a/test/runtests.jl b/test/runtests.jl index c2d8e2e..34248b5 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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 @@ -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 @@ -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 @@ -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