diff --git a/Project.toml b/Project.toml index 9ec5d5f..b0f0207 100644 --- a/Project.toml +++ b/Project.toml @@ -2,20 +2,12 @@ name = "CodecXz" uuid = "ba30903b-d9e8-5048-a5ec-d1f5b0d4b47b" license = "MIT" authors = ["Kenta Sato "] -version = "0.7.3" +version = "0.7.4" [deps] -Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa" XZ_jll = "ffd25f8a-64ca-5728-b0f7-c24cf3aae800" [compat] TranscodingStreams = "0.9, 0.10, 0.11" -julia = "1.3" - -[extras] -Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" -Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" - -[targets] -test = ["Test", "Random"] +julia = "1.6" diff --git a/src/CodecXz.jl b/src/CodecXz.jl index 77b8ace..4eea4cd 100644 --- a/src/CodecXz.jl +++ b/src/CodecXz.jl @@ -14,7 +14,6 @@ import TranscodingStreams: initialize, finalize, splitkwargs -using Libdl using XZ_jll include("liblzma.jl") diff --git a/test/Project.toml b/test/Project.toml new file mode 100644 index 0000000..5ba33c4 --- /dev/null +++ b/test/Project.toml @@ -0,0 +1,5 @@ +[deps] +CodecXz = "ba30903b-d9e8-5048-a5ec-d1f5b0d4b47b" +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 704aa4f..e312310 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,6 @@ using CodecXz -using Random -using TranscodingStreams +using TranscodingStreams: TranscodingStreams +using TestsForCodecPackages using Test @testset "Xz Codec" begin @@ -27,13 +27,11 @@ using Test @test XzCompressorStream <: TranscodingStreams.TranscodingStream @test XzDecompressorStream <: TranscodingStreams.TranscodingStream - TranscodingStreams.test_roundtrip_read(XzCompressorStream, XzDecompressorStream) - TranscodingStreams.test_roundtrip_write(XzCompressorStream, XzDecompressorStream) - TranscodingStreams.test_roundtrip_lines(XzCompressorStream, XzDecompressorStream) - if isdefined(TranscodingStreams, :test_roundtrip_seekstart) - TranscodingStreams.test_roundtrip_seekstart(XzCompressorStream, XzDecompressorStream) - end - TranscodingStreams.test_roundtrip_transcode(XzCompressor, XzDecompressor) + test_roundtrip_read(XzCompressorStream, XzDecompressorStream) + test_roundtrip_write(XzCompressorStream, XzDecompressorStream) + test_roundtrip_lines(XzCompressorStream, XzDecompressorStream) + test_roundtrip_seekstart(XzCompressorStream, XzDecompressorStream) + test_roundtrip_transcode(XzCompressor, XzDecompressor) @test_throws ArgumentError XzCompressor(level=10) @test_throws ArgumentError XzDecompressor(memlimit=0)