mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-09 10:50:42 +00:00
Fix unification test
This commit is contained in:
parent
d721fb1c33
commit
b558d3cbf5
@ -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<>()),
|
||||||
|
Loading…
Reference in New Issue
Block a user