Skip to content

Commit

Permalink
release: v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
K-dizzled committed Nov 29, 2023
1 parent 63168cd commit 070a1d6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/test/coqLlmInteractionTests/proofView.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,21 +315,19 @@ suite('ProofView parseFile tests', () => {
await client.start();
const proofView = new ProofView(client, statusItem);

assert.ok(window.activeTextEditor);
const res = await proofView.parseFile(window.activeTextEditor);
const res = await proofView.parseFile(window.activeTextEditor!);

assert.strictEqual(res.length, theorems.length);
for (let i = 0; i < res.length; i++) {
const theorem = theorems[i];
const thrRes = res[i];

assert.strictEqual(thrRes.name, theorem.name);
assert.ok(thrRes.proof);
assert.strictEqual(thrRes.proof.proof_steps.length, theorem.numOfSteps);
assert.strictEqual(thrRes.proof.is_incomplete, theorem.isIncomplete);
assert.strictEqual(thrRes.proof.end_pos.end.line, theorem.endPos.line);
assert.strictEqual(thrRes.proof.end_pos.end.character, theorem.endPos.character);
assert.strictEqual(thrRes.proof.onlyText(), theorem.proof);
assert.strictEqual(thrRes.proof!.proof_steps.length, theorem.numOfSteps);
assert.strictEqual(thrRes.proof!.is_incomplete, theorem.isIncomplete);
assert.strictEqual(thrRes.proof!.end_pos.end.line, theorem.endPos.line);
assert.strictEqual(thrRes.proof!.end_pos.end.character, theorem.endPos.character);
assert.strictEqual(thrRes.proof!.onlyText(), theorem.proof);
assert.ok(rangesEqual(thrRes.statement_range, theorem.statementRange));
}

Expand Down

0 comments on commit 070a1d6

Please sign in to comment.