test: module docs
This commit is contained in:
parent
5796b93134
commit
accdededc0
2 changed files with 14 additions and 0 deletions
13
tests/lean/moduleDoc.lean
Normal file
13
tests/lean/moduleDoc.lean
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import Lean
|
||||
|
||||
/-! Testing module documentation. -/
|
||||
|
||||
open Lean
|
||||
|
||||
def tst : MetaM Unit := do
|
||||
let docs := getMainModuleDoc (← getEnv)
|
||||
IO.println <| docs.toList.map repr
|
||||
|
||||
/-! Another module doc. -/
|
||||
|
||||
#eval tst
|
||||
1
tests/lean/moduleDoc.lean.expected.out
Normal file
1
tests/lean/moduleDoc.lean.expected.out
Normal file
|
|
@ -0,0 +1 @@
|
|||
["Testing module documentation. ", "Another module doc. "]
|
||||
Loading…
Add table
Reference in a new issue