[Reportbug-commits] r629 - in branches/manual_merge (test_hiermatch.py)

morph-guest at users.alioth.debian.org morph-guest at users.alioth.debian.org
Sat Aug 16 22:45:35 UTC 2008


    Date: Saturday, August 16, 2008 @ 22:45:33
  Author: morph-guest
Revision: 629

last commit before cherry picking

Deleted:
  branches/manual_merge/test_hiermatch.py

Deleted: branches/manual_merge/test_hiermatch.py
===================================================================
--- branches/manual_merge/test_hiermatch.py	2008-08-16 21:54:31 UTC (rev 628)
+++ branches/manual_merge/test_hiermatch.py	2008-08-16 22:45:33 UTC (rev 629)
@@ -1,44 +0,0 @@
-# $Id: test_hiermatch.py,v 1.1.1.1 2004-02-05 04:29:08 lawrencc Exp $
-
-from reportbuglib import hiermatch as hier
-
-def test_list():
-    import sys
-    a = file(sys.argv[0]).readlines()
-    b = hier.grep_list(a, '\[.*\]')
-    for i in b:
-        print a[i].rstrip()
-    print '*'*40
-    c = hier.grep_list(a, 'print', b)
-    for i in c:
-        print a[i].rstrip()
-
-
-def test_hier():
-    import sys
-    a = file(sys.argv[0]).readlines()
-    b = [(1, a)]
-    c = hier.egrep_hierarchy(b, 'print', )
-    print c
-    for i in range(len(c)):
-        for k in c[i]:
-            print b[i][1][k].rstrip()
-    d = hier.egrep_hierarchy(b, '\[.*\]', c)
-    print d
-    for i in range(len(d)):
-        for k in d[i]:
-            print b[i][1][k].rstrip()
-
-def test_mhier():
-    import sys
-    a = file(sys.argv[0]).readlines()
-    b = [(1, a)]
-    c = hier.matched_hierarchy(b, 'print', )
-    print c
-    d = [len(i[1]) for i in c]
-    print reduce(lambda x, y: x+y, d)
-
-test_mhier()
-
-# vim:ts=8:sw=4:expandtab:
-




More information about the Reportbug-commits mailing list