# -*- tcl -*-
# Commands covered:	adler
#
# This file contains a collection of tests for one or more of the commands
# the TRF extension. Sourcing this file into Tcl runs the tests and generates
# output for errors.  No output means no errors were found.
#
# Copyright (c) 1996 Andreas Kupries (a.kupries@westend.com)
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# $Id: adler_bb.test,v 1.1 1999/09/19 10:33:29 aku Exp $


foreach {i in digest} {
    0 {hello world} 1A0B045D
} {
    if {[info tclversion] < 8.0} {
	test adler-4.$i-7.6 {adler, immediate} {hasZlib} {
	    exec_md adler [text2hex $in]
	} $digest
    } else {
	test adler-4.$i-8.x {adler, immediate} {hasZlib} {
	    hex -m e [adler $in]
	} $digest
    }
}

::tcltest::cleanupTests
