mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
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.
65 lines
1.8 KiB
Lean4
65 lines
1.8 KiB
Lean4
module
|
|
--^ waitForILeans
|
|
|
|
public section
|
|
|
|
#check Lean.Server.Test.Refs.test1
|
|
--^ codeAction
|
|
|
|
example : LeanServerTestRefsTest0
|
|
--^ codeAction
|
|
|
|
namespace Lean.Server.Test.Refs
|
|
#check Lean.Server.Test.Refs.test1
|
|
--^ codeAction
|
|
end Lean.Server.Test.Refs
|
|
|
|
namespace Lean.Server.Test.Refs.Foobar
|
|
#check Lean.Server.Test.LeanServerTestRefsTest0'
|
|
end Lean.Server.Test.Refs.Foobar
|
|
|
|
open Lean.Server.Test.Refs.Foobar
|
|
#check Lean.Server.Test.Refs.test1
|
|
--^ codeAction
|
|
|
|
#check Lean.Server.Test.Refs.test
|
|
--^ codeAction
|
|
|
|
namespace Lean.Server.Test.Refs.Test1
|
|
#check Lean.Server.Test.Refs.Test1
|
|
--^ codeAction
|
|
end Lean.Server.Test.Refs.Test1
|
|
|
|
|
|
structure Foobar where
|
|
veryLongAndHopefullyVeryUniqueBar0 : Nat
|
|
|
|
namespace Foobar
|
|
|
|
def veryLongAndHopefullyVeryUniqueFoo0 := 0
|
|
|
|
def veryLongAndHopefullyVeryUniqueFoobar0 : Foobar := { veryLongAndHopefullyVeryUniqueBar0 := 0 }
|
|
|
|
end Foobar
|
|
|
|
open Foobar
|
|
|
|
#check veryLongAndHopefullyVeryUniqueFoo
|
|
--^ codeAction
|
|
|
|
example (f : Foobar) : Nat := f.veryLongAndHopefullyVeryUniqueBar
|
|
--^ codeAction
|
|
|
|
example : Foobar := .veryLongAndHopefullyVeryUniqueFoobar
|
|
--^ codeAction
|
|
|
|
def pubNonExposed : Lean.Server.Test.Refs.Test1
|
|
--^ codeAction
|
|
:= Lean.Server.Test.Refs.Test1
|
|
--^ codeAction
|
|
|
|
public meta def pubMeta : Lean.Server.Test.Refs.Test1
|
|
--^ codeAction
|
|
:= Lean.Server.Test.Refs.Test1
|
|
--^ codeAction
|