Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em committed Dec 15, 2024
1 parent 4e95e5c commit 3b355db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/lean/getElem.lean
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def withTwoRanges (xs : Array Nat) : Option Nat := Id.run do

def palindromeNeedsOmega (xs : Array Nat) : Bool := Id.run do
for h : i in [:xs.size/2] do
have : i < xs.size/2 := h.2 -- omega does not understand range yet
have : i < xs.size/2 := h.2.1 -- omega does not understand range yet
if xs[xs.size - 1 - i] ≠ xs[i] then
return false
return true
2 changes: 1 addition & 1 deletion tests/lean/run/structure_recursive.lean
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def Foo'.preorder : Foo' → String
| {name, n, children} => Id.run do
let mut acc := name
for h : i in [0:n] do
acc := acc ++ (children ⟨i, h.2⟩).preorder
acc := acc ++ (children ⟨i, h.2.1⟩).preorder
return acc

/-- info: Foo'.preorder : Foo' → String -/
Expand Down

0 comments on commit 3b355db

Please sign in to comment.