From 7fc6444f30a8f79bd34b84365947628bcb7f3be3 Mon Sep 17 00:00:00 2001 From: dkf Date: Fri, 12 Dec 2008 15:00:01 +0000 Subject: Added test for gzip header access --- tests/zlib.test | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/zlib.test b/tests/zlib.test index 2e66530..7ce56f2 100644 --- a/tests/zlib.test +++ b/tests/zlib.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution of # this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: zlib.test,v 1.1 2008/12/11 14:13:33 dkf Exp $ +# RCS: @(#) $Id: zlib.test,v 1.2 2008/12/12 15:00:01 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2.1 @@ -35,6 +35,11 @@ test zlib-3.1 {zlib deflate/inflate} { test zlib-4.1 {zlib gzip/gunzip} { zlib gunzip [zlib gzip abcdefghijklm] } abcdefghijklm +test zlib-4.2 {zlib gzip/gunzip} { + set s [string repeat abcdef 5] + list [zlib gunzip [zlib gzip $s -header {comment gorp}] -header head] \ + [dict get $head comment] [dict get $head size] +} {abcdefabcdefabcdefabcdefabcdef gorp 30} test zlib-5.1 {zlib adler32} { format %x [zlib adler32 abcdeabcdeabcdeabcdeabcdeabcde] -- cgit v0.12