def test_order(self): domain = Domain(["s1", "s2"], {"s1": REAL, "s2": BOOL}, {"s1": (0, 1)}) data = np.array([[1, 0], [0, 1]]) a, b = domain.get_symbols(["s1", "s2"]) f = (a >= 1) & ~b assert all(evaluate(domain, f, data) == np.array([1, 0]))
def test_order(self): domain = Domain(["s1", "s2"], {"s1": REAL, "s2": BOOL}, {"s1": (0, 1)}) data1 = np.array([1, 0]) data2 = np.array([0, 1]) a, b = domain.get_symbols(["s1", "s2"]) f = (a >= 1) & ~b assert evaluate(domain, f, data1) == np.array([1]) assert evaluate(domain, f, data2) == np.array([0])