test: module docs

This commit is contained in:
Leonardo de Moura 2021-08-06 13:54:56 -07:00
parent 5796b93134
commit accdededc0
2 changed files with 14 additions and 0 deletions

13
tests/lean/moduleDoc.lean Normal file
View 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

View file

@ -0,0 +1 @@
["Testing module documentation. ", "Another module doc. "]