=htp #17419 fix Decoder.decode to collect all output data
This commit is contained in:
parent
3ba3de55b6
commit
689ff45382
2 changed files with 1 additions and 3 deletions
|
|
@ -22,14 +22,12 @@ class GzipSpec extends CoderSpec {
|
|||
|
||||
override def extraTests(): Unit = {
|
||||
"decode concatenated compressions" in {
|
||||
pending // FIXME: unbreak
|
||||
ourDecode(Seq(encode("Hello, "), encode("dear "), encode("User!")).join) should readAs("Hello, dear User!")
|
||||
}
|
||||
"provide a better compression ratio than the standard Gzip/Gunzip streams" in {
|
||||
ourEncode(largeTextBytes).length should be < streamEncode(largeTextBytes).length
|
||||
}
|
||||
"throw an error on truncated input" in {
|
||||
pending // FIXME: unbreak
|
||||
val ex = the[RuntimeException] thrownBy ourDecode(streamEncode(smallTextBytes).dropRight(5))
|
||||
ex.getCause.getMessage should equal("Truncated GZIP stream")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue