Skip to content

Commit

Permalink
add test_roundtrip_lines
Browse files Browse the repository at this point in the history
  • Loading branch information
bicycle1885 committed Jun 11, 2017
1 parent 05c2ade commit 7fc1bca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
julia 0.6.0-rc1
TranscodingStreams 0.1
TranscodingStreams 0.2
10 changes: 9 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
using CodecZlib
using Base.Test
import TranscodingStreams: TranscodingStream, test_roundtrip_read, test_roundtrip_write, test_roundtrip_transcode
import TranscodingStreams:
TranscodingStream,
test_roundtrip_read,
test_roundtrip_write,
test_roundtrip_lines,
test_roundtrip_transcode

const testdir = dirname(@__FILE__)

Expand Down Expand Up @@ -63,6 +68,7 @@ const testdir = dirname(@__FILE__)

test_roundtrip_read(GzipCompressionStream, GzipDecompressionStream)
test_roundtrip_write(GzipCompressionStream, GzipDecompressionStream)
test_roundtrip_lines(GzipCompressionStream, GzipDecompressionStream)
test_roundtrip_transcode(GzipCompression, GzipDecompression)

@test_throws ArgumentError GzipCompression(level=10)
Expand Down Expand Up @@ -120,6 +126,7 @@ end

test_roundtrip_read(ZlibCompressionStream, ZlibDecompressionStream)
test_roundtrip_write(ZlibCompressionStream, ZlibDecompressionStream)
test_roundtrip_lines(ZlibCompressionStream, ZlibDecompressionStream)
test_roundtrip_transcode(ZlibCompression, ZlibDecompression)

@test_throws ArgumentError ZlibCompression(level=10)
Expand All @@ -130,6 +137,7 @@ end
@testset "Deflate Codec" begin
test_roundtrip_read(DeflateCompressionStream, DeflateDecompressionStream)
test_roundtrip_write(DeflateCompressionStream, DeflateDecompressionStream)
test_roundtrip_lines(DeflateCompressionStream, DeflateDecompressionStream)
test_roundtrip_transcode(DeflateCompression, DeflateDecompression)

@test_throws ArgumentError DeflateCompression(level=10)
Expand Down

0 comments on commit 7fc1bca

Please sign in to comment.