lean4-htt/tests/server_interactive/foldingRange.lean
Garmelon a3cb39eac9
chore: migrate more tests to new test suite (#12809)
This PR migrates most remaining tests to the new test suite. It also
completes the migration of directories like `tests/lean/run`, meaning
that PRs trying to add tests to those old directories will now fail.
2026-03-06 16:52:01 +00:00

47 lines
419 B
Text

--^ textDocument/foldingRange
import Lean
import Lean.Data
open Lean
namespace Foo
open Std
open Lean
section Bar
/-!
A module-level doc comment
-/
/--
Some documentation comment
-/
@[inline]
def add (x y : Nat) :=
x + y
inductive InductiveTy
| a
/--
Another doc comment. This one is not folded.
-/
| b
mutual
def a :=
1
def b :=
a
end
end Bar
end Foo
#check #[
1,
2,
3
]