Skip to content

Commit 938e35b

Browse files
authored
use TestsForCodecPackages (#29)
1 parent b419f9d commit 938e35b

File tree

4 files changed

+14
-20
lines changed

4 files changed

+14
-20
lines changed

Project.toml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,12 @@ name = "CodecXz"
22
uuid = "ba30903b-d9e8-5048-a5ec-d1f5b0d4b47b"
33
license = "MIT"
44
authors = ["Kenta Sato <bicycle1885@gmail.com>"]
5-
version = "0.7.3"
5+
version = "0.7.4"
66

77
[deps]
8-
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
98
TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
109
XZ_jll = "ffd25f8a-64ca-5728-b0f7-c24cf3aae800"
1110

1211
[compat]
1312
TranscodingStreams = "0.9, 0.10, 0.11"
14-
julia = "1.3"
15-
16-
[extras]
17-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
18-
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
19-
20-
[targets]
21-
test = ["Test", "Random"]
13+
julia = "1.6"

src/CodecXz.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import TranscodingStreams:
1414
initialize,
1515
finalize,
1616
splitkwargs
17-
using Libdl
1817
using XZ_jll
1918

2019
include("liblzma.jl")

test/Project.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[deps]
2+
CodecXz = "ba30903b-d9e8-5048-a5ec-d1f5b0d4b47b"
3+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
4+
TestsForCodecPackages = "c2e61002-3542-480d-8b3c-5f05cc4f8554"
5+
TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"

test/runtests.jl

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using CodecXz
2-
using Random
3-
using TranscodingStreams
2+
using TranscodingStreams: TranscodingStreams
3+
using TestsForCodecPackages
44
using Test
55

66
@testset "Xz Codec" begin
@@ -27,13 +27,11 @@ using Test
2727
@test XzCompressorStream <: TranscodingStreams.TranscodingStream
2828
@test XzDecompressorStream <: TranscodingStreams.TranscodingStream
2929

30-
TranscodingStreams.test_roundtrip_read(XzCompressorStream, XzDecompressorStream)
31-
TranscodingStreams.test_roundtrip_write(XzCompressorStream, XzDecompressorStream)
32-
TranscodingStreams.test_roundtrip_lines(XzCompressorStream, XzDecompressorStream)
33-
if isdefined(TranscodingStreams, :test_roundtrip_seekstart)
34-
TranscodingStreams.test_roundtrip_seekstart(XzCompressorStream, XzDecompressorStream)
35-
end
36-
TranscodingStreams.test_roundtrip_transcode(XzCompressor, XzDecompressor)
30+
test_roundtrip_read(XzCompressorStream, XzDecompressorStream)
31+
test_roundtrip_write(XzCompressorStream, XzDecompressorStream)
32+
test_roundtrip_lines(XzCompressorStream, XzDecompressorStream)
33+
test_roundtrip_seekstart(XzCompressorStream, XzDecompressorStream)
34+
test_roundtrip_transcode(XzCompressor, XzDecompressor)
3735

3836
@test_throws ArgumentError XzCompressor(level=10)
3937
@test_throws ArgumentError XzDecompressor(memlimit=0)

0 commit comments

Comments
 (0)