From f3eedce8859ca99a4fbd27406945ae62e6209a2a Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Sun, 5 Jul 2009 11:30:16 +0000 Subject: [PATCH] - Added shax_file tests and data files - Added tests for shax self_test() --- tests/data_files/hash_file_1 | Bin 0 -> 5120 bytes tests/data_files/hash_file_2 | 2 + tests/data_files/hash_file_3 | Bin 0 -> 13 bytes tests/data_files/hash_file_4 | 0 tests/suites/test_suite_shax.data | 69 ++++++++++++++++++ tests/suites/test_suite_shax.function | 101 ++++++++++++++++++++++++++ 6 files changed, 172 insertions(+) create mode 100644 tests/data_files/hash_file_1 create mode 100644 tests/data_files/hash_file_2 create mode 100644 tests/data_files/hash_file_3 create mode 100644 tests/data_files/hash_file_4 diff --git a/tests/data_files/hash_file_1 b/tests/data_files/hash_file_1 new file mode 100644 index 0000000000000000000000000000000000000000..681fad248fe41bd2a40bab1ebf35cb338c27d690 GIT binary patch literal 5120 zcmV+b6#wf?GWlN@9c7EgYk-wdqKTGXdjc54Ru`$FYzCy#(9E}onS>s{LyLzaDX2iY z^6rmF9|gWj{Q%PcwUdC38kvc4ZR?nRMf8O{I9BH|EL3#ir?STx~8oG#PWAnU-E$4q>3LBJxJ=84c*pMUxNN7#pTIgdqIbtAYD|QI|uv$m17}-LtP>M3|AXPTXUG7Y{`` zC&!q^5ZT&_{-^QYop49J)=fAYrHSt#?%h^`|MYZ@*4Fs&9Twv(?oSxkudKCnx>BqT0hkH0F7<-R%$R7n&z#zVI^-$MF?1y)49j<*SF6 z$9=`zo`2&`w|oqB!vSV&nsUBhu*Lij7=E5){s2+lya%gfSI1dwi^4zF3lxySK@)0W z8GE}Q^0lxbd6t>gs`q%SH)#r5yFf@OISbrD_$j*@E&0724GhzoMasL|Ft5g$8JJjo zH^i8^!8B8w-!;MollP?t%n-RW7ThM^ZT_uMAp3xxOCKcW35YkJ+}Cc@x9xT^%q4Fi zZy-@jj9PjSeGm4&cq`)*WPIK(XU>lp8x@Ku;U^#kRCK(4`9CJR{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001 diff --git a/tests/data_files/hash_file_2 b/tests/data_files/hash_file_2 new file mode 100644 index 000000000..cc44eacea --- /dev/null +++ b/tests/data_files/hash_file_2 @@ -0,0 +1,2 @@ +'|'DW~J>UN *X"Qdi!q4],0V)oj~ mGwP j$ N4 ܔF>5/41z|-ۍ h*hA~ +f0 -/b2ȵ \ No newline at end of file diff --git a/tests/data_files/hash_file_3 b/tests/data_files/hash_file_3 new file mode 100644 index 0000000000000000000000000000000000000000..58bb0bad41ac235fed6e4781aba716da4c978421 GIT binary patch literal 13 Ucmdlf^K?!5WgBI`L