From fdfb51d990e64e3e449cf0fb42145539a19d98f0 Mon Sep 17 00:00:00 2001 From: nwf Date: Fri, 29 Aug 2008 16:09:22 -0400 Subject: [PATCH] HuffmanCoder_test test larger new symbol vocabulary darcs-hash:20080829200922-4d648-ddc1c68783a9155731f3c62032e17987e35460c6.gz --- HuffmanCoder_test.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/HuffmanCoder_test.pl b/HuffmanCoder_test.pl index 8053af8..df95175 100644 --- a/HuffmanCoder_test.pl +++ b/HuffmanCoder_test.pl @@ -18,7 +18,11 @@ my $huffmancoder = Instance::HuffmanCoder->new($mastercoder, $instance_huffman_t #print Dumper($huffmancoder); -my @test_strings = ( "hi", "there", "coin", "test", "!@#\$&*.-=" ); +my @test_strings = ( "abcdefghijklmnopqrstuvwxyz" + , "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + , "1234567890!@#\$%^&*()" + , ",<.>/?;:'\"[]{}=+-_`~\\|" + ); foreach my $ts (@test_strings) { my $enc = $huffmancoder->encode($ts); -- 2.50.1