]> granicus.if.org Git - python/commitdiff
(testall.py): Slightly improved test harness to make it easier to add
authorBarry Warsaw <barry@python.org>
Mon, 9 Dec 1996 22:34:15 +0000 (22:34 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 9 Dec 1996 22:34:15 +0000 (22:34 +0000)
simple tests.

(testall.py, testall.out): Added MD5 testsuite

Lib/test/testall.out
Lib/test/testall.py

index 4678122fc12d055132a5a3044d5673b53e67dc8a..2128435cde3e3a5abf40fdf9b0a1fa75e1533595 100644 (file)
@@ -167,4 +167,13 @@ tanh
 test_time
 test_array
 test_strop
+test_md5
+MD5 test suite:
+MD5 ("") = d41d8cd98f00b204e9800998ecf8427e
+MD5 ("a") = 0cc175b9c0f1b6a831c399e269772661
+MD5 ("abc") = 900150983cd24fb0d6963f7d28e17f72
+MD5 ("message digest") = f96b697d7cb7938d525a2f31aaf161d0
+MD5 ("abcdefghijklmnopqrstuvwxyz") = c3fcd3d76192e4007dfb496cca67e13b
+MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") = d174ab98d277d9f5a5611c2c9f419d9f
+MD5 ("12345678901234567890123456789012345678901234567890123456789012345678901234567890") = 57edf4a22be3c955ac49da2e2107b67a
 Passed all tests.
index f8ce34691a26d8039a3fe4d89012163ed85d2304..b31dd98e430ff2f02df8c9049f2a6f6eb277e557 100644 (file)
@@ -4,45 +4,17 @@
 # Remember to add new tests when new features are added!
 
 from test_support import *
-                 
+
 print 'test_grammar'
 forget('test_grammar')
 import test_grammar
 
-print 'test_opcodes'
-unload('test_opcodes')
-import test_opcodes
-
-print 'test_operations'
-unload('test_operations')
-import test_operations
-
-print 'test_builtin'
-unload('test_builtin')
-import test_builtin
-
-print 'test_exceptions'
-unload('test_exceptions')
-import test_exceptions
-
-print 'test_types'
-unload('test_types')
-import test_types
-
-print 'test_math'
-unload('test_math')
-import test_math
-
-print 'test_time'
-unload('test_time')
-import test_time
-
-print 'test_array'
-unload('test_array')
-import test_array
-
-print 'test_strop'
-unload('test_strop')
-import test_strop
+for t in ['test_opcodes', 'test_operations', 'test_builtin',
+         'test_exceptions', 'test_types', 'test_math', 'test_time',
+         'test_array', 'test_strop', 'test_md5',
+         ]:
+    print t
+    unload(t)
+    __import__(t, globals(), locals())
 
 print 'Passed all tests.'