Skip to content

Commit

Permalink
Fix tests (#4442)
Browse files Browse the repository at this point in the history
I thought my last commit was innocuous, but that's always a dangerous attitude to have :)
`Position.withColumn()` now does bounds checking, which the test framework wasn't too happy about
  • Loading branch information
J-Fields committed Dec 30, 2019
1 parent 077a95b commit ea28879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testSimplifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class TestObjectHelper {
for (let i = 0; i < lines.length; i++) {
const columnIdx = lines[i].indexOf('|');
if (columnIdx >= 0) {
ret.position = ret.position.withLine(i).withColumn(columnIdx);
ret.position = new Position(i, columnIdx);
ret.success = true;
}
}
Expand Down

0 comments on commit ea28879

Please sign in to comment.