chore: fix tests
This commit is contained in:
parent
8dfb0324c5
commit
fa6d35adfa
2 changed files with 5 additions and 3 deletions
|
|
@ -5,7 +5,9 @@ open Lean.Meta
|
|||
|
||||
unsafe def tst1 : IO Unit :=
|
||||
withImportModules [{module := `Lean}] {} 0 fun env => do
|
||||
let insts := env.getGlobalInstances;
|
||||
IO.println (format insts)
|
||||
let aux : MetaM Unit := do
|
||||
let insts ← getGlobalInstancesIndex
|
||||
IO.println (format insts)
|
||||
discard <| aux.run |>.toIO {} { env := env }
|
||||
|
||||
#eval tst1
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ do print "----- tst14 -----";
|
|||
let stateM ← mkStateM nat;
|
||||
print stateM;
|
||||
let monad ← mkMonad stateM;
|
||||
let globalInsts ← getGlobalInstances;
|
||||
let globalInsts ← getGlobalInstancesIndex;
|
||||
let insts ← globalInsts.getUnify monad;
|
||||
print insts;
|
||||
pure ()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue