Fix unification test

This commit is contained in:
Arne Keller 2021-08-21 16:45:05 +02:00
parent d721fb1c33
commit b558d3cbf5

View File

@ -25,7 +25,7 @@ class UnificationTest {
Deque<Constraint> constraints = new ArrayDeque<>(); Deque<Constraint> constraints = new ArrayDeque<>();
constraints.add(new Constraint(a, new FunctionType(b, c))); constraints.add(new Constraint(a, new FunctionType(b, c)));
Deque<Constraint> initialConstraints = new ArrayDeque<>(constraints); Deque<Constraint> initialConstraints = new ArrayDeque<>(constraints);
Unification u = new Unification(constraints); Unification u = new Unification(new ArrayDeque<>(constraints));
List<UnificationStep> steps = u.getUnificationSteps(); List<UnificationStep> steps = u.getUnificationSteps();
assertEquals(2, steps.size()); assertEquals(2, steps.size());
assertEquals(new UnificationStep(new Result<>(new ArrayList<>()), assertEquals(new UnificationStep(new Result<>(new ArrayList<>()),