Skip to content

Commit da8936c

Browse files
committed
Fixed unit tests and build scripts
1 parent 3bd6567 commit da8936c

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

Source/Core/srctest/ca/uqac/lif/spreadsheet/SpreadsheetTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ public void testRead2()
158158
0, 1, true,
159159
2, 3.5, null), out);
160160
assertEquals(ComposedPart.compose(new PositionRange(new Position(0, 0), new Position(0, 0)), NthInput.FIRST), mapping.get(Cell.get(0, 0)));
161-
assertEquals(ComposedPart.compose(new PositionRange(new Position(0, 7), new Position(0, 9)), NthInput.FIRST), mapping.get(Cell.get(2, 0)));
161+
assertEquals(ComposedPart.compose(new PositionRange(new Position(0, 4), new Position(0, 6)), NthInput.FIRST), mapping.get(Cell.get(2, 0)));
162162
assertEquals(ComposedPart.compose(new PositionRange(new Position(3, 2), new Position(3, 2)), NthInput.FIRST), mapping.get(Cell.get(0, 2)));
163-
assertEquals(ComposedPart.compose(new PositionRange(new Position(3, 9), new Position(3, 12)), NthInput.FIRST), mapping.get(Cell.get(2, 2)));
163+
assertEquals(ComposedPart.compose(new PositionRange(new Position(3, 8), new Position(3, 11)), NthInput.FIRST), mapping.get(Cell.get(2, 2)));
164164
}
165165
}

Source/Core/srctest/ca/uqac/lif/spreadsheet/functions/ApplyFormulaTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void test1()
9898
assertEquals(1, nn.getOutputLinks(0).size());
9999
PartNode child_1 = (PartNode) nn.getOutputLinks(0).get(0).getNode();
100100
Part child_part = child_1.getPart();
101-
assertEquals(ComposedPart.compose(Cell.get(0, 0), NthOutput.FIRST), child_part);
101+
assertEquals(ComposedPart.compose(Cell.get(0, 0), NthInput.FIRST), child_part);
102102
}
103103
}
104104

@@ -140,7 +140,7 @@ public void test2()
140140
assertEquals(1, nn.getOutputLinks(0).size());
141141
PartNode child_1 = (PartNode) nn.getOutputLinks(0).get(0).getNode();
142142
Part child_part1 = child_1.getPart();
143-
assertEquals(ComposedPart.compose(Cell.get(0, 0), NthOutput.FIRST), child_part1);
143+
assertEquals(ComposedPart.compose(Cell.get(0, 0), NthInput.FIRST), child_part1);
144144
}
145145
}
146146

@@ -179,10 +179,10 @@ public void test3()
179179
PartNode child_1 = (PartNode) nn.getOutputLinks(0).get(0).getNode();
180180
assertEquals(1, nn.getOutputLinks(1).size());
181181
Part child_part1 = child_1.getPart();
182-
assertEquals(ComposedPart.compose(Cell.get(0, 0), NthOutput.FIRST), child_part1);
182+
assertEquals(ComposedPart.compose(Cell.get(0, 0), NthInput.FIRST), child_part1);
183183
PartNode child_2 = (PartNode) nn.getOutputLinks(1).get(0).getNode();
184184
Part child_part2 = child_2.getPart();
185-
assertEquals(ComposedPart.compose(Cell.get(1, 0), NthOutput.FIRST), child_part2);
185+
assertEquals(ComposedPart.compose(Cell.get(1, 0), NthInput.FIRST), child_part2);
186186
}
187187
}
188188

@@ -223,7 +223,7 @@ public void test4()
223223
PartNode child_1 = (PartNode) nn.getOutputLinks(0).get(0).getNode();
224224
assertEquals(1, nn.getOutputLinks(1).size());
225225
Part child_part1 = child_1.getPart();
226-
assertEquals(ComposedPart.compose(Cell.get(0, 0), NthOutput.FIRST), child_part1);
226+
assertEquals(ComposedPart.compose(Cell.get(0, 0), NthInput.FIRST), child_part1);
227227
PartNode child_2 = (PartNode) nn.getOutputLinks(1).get(0).getNode();
228228
Part child_part2 = child_2.getPart();
229229
assertEquals(ComposedPart.compose(Cell.get(0, 0), NthInput.SECOND), child_part2);
@@ -253,7 +253,7 @@ public void test5()
253253
assertEquals(1, nn.getOutputLinks(0).size());
254254
PartNode child_1 = (PartNode) nn.getOutputLinks(0).get(0).getNode();
255255
Part child_part1 = child_1.getPart();
256-
assertEquals(ComposedPart.compose(Cell.get(1, 0), NthOutput.FIRST), child_part1);
256+
assertEquals(ComposedPart.compose(Cell.get(1, 0), NthInput.FIRST), child_part1);
257257
}
258258
{
259259
// 0:1 is explained by the value of 0:0, which in turn is explained
@@ -274,7 +274,7 @@ public void test5()
274274
assertEquals(1, nn2.getOutputLinks(0).size());
275275
PartNode child_3 = (PartNode) nn2.getOutputLinks(0).get(0).getNode();
276276
Part child_part3 = child_3.getPart();
277-
assertEquals(ComposedPart.compose(Cell.get(1, 0), NthOutput.FIRST), child_part3);
277+
assertEquals(ComposedPart.compose(Cell.get(1, 0), NthInput.FIRST), child_part3);
278278
}
279279
}
280280
}

Source/Examples/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@
9191
<bundle>false</bundle>
9292
</dependency>
9393
</dependencies>
94-
</build>
94+
</build>

0 commit comments

Comments
 (0)