TestFun/ilyagerelyuk
TestFun/mvpwn
f1class Tester:f1class Tester:
22
n3    def __init__(self, fun):n3    def __init__(self, f):
4        self.fun = fun4        self.fun = f
55
6    def __call__(self, suite, allowed=[]):6    def __call__(self, suite, allowed=[]):
7        res = 07        res = 0
n8        for par in suite:n8        for arg in suite:
9            try:9            try:
t10                self.fun(*par)t10                self.fun(*arg)
11            except Exception as e:11            except Exception as E:
12                if type(e) in allowed or Exception in allowed:12                if type(E) in allowed or Exception in allowed:
13                    res = -113                    res = -1
14                else:14                else:
15                    res = 115                    res = 1
16                    break16                    break
17        return res17        return res
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op