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