static bool checkFunctionOnPairs(O f, L> tests) { for (Pair p : tests) try { if (neq(callF(f, p.a), p.b)) false; } catch { false; } true; }