TestFun/OG
TestFun/dogernout
f1class Tester:f1class Tester:
22
3    def __init__(self, fun):3    def __init__(self, fun):
4        self.fun = fun4        self.fun = fun
55
n6    def __call__(self, suit, allowed=[]):n6    def __call__(self, suite, allowed=[]):
7        res = 07        flag = 0
8        for a in suit:8        for i in suite:
9            try:9            try:
n10                self.fun(*a)n10                self.fun(*i)
11            except Exception as E:11            except Exception as exp:
12                if type(E) in allowed or Exception in allowed:12                if type(exp) in allowed or Exception in allowed:
13                    res = -113                    flag = -1
14                else:14                else:
15                    return 115                    return 1
t16        return rest16        return flag
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op