Skip to content

Commit 70158ef

Browse files
committed
wip
1 parent e15b17d commit 70158ef

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
unreleased
22
----------
33

4-
(Changes that can break existing programs are marked with a "*")
4+
(Changes that can break existing programs are marked with a "(!)")
55

66
### Tests
77

88
- Added infrastructure for testing of LSP server and Verso documents
9+
10+
* Changed BlockConfig

src/tests/interactive/inline_goals.lean

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ import Verso
22
import VersoManual
33
import VersoBlueprint
44

5+
theorem test0 : ∀ (n : Nat), n = n := by
6+
intros
7+
--^ textDocument/hover
8+
rfl
9+
no
510
open Verso.Genre Manual
611

712
#doc (Manual) "Test for Goals in Inline Lean" =>
813

9-
```lean
14+
```leann
1015
theorem test : ∀ (n : Nat), n = n := by
1116
intros
12-
--^ $/lean/plainGoal
17+
--^ $/lean/plainGoal
1318
rfl
1419
```

src/tests/run_interactive.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
# set -ex
44

5+
cd ../..
6+
RUN_DIR=src/tests/
7+
58
# Configuration
6-
TEST_DIR="interactive"
7-
RUNNER="./test_single.sh"
9+
TEST_DIR="$RUN_DIR/interactive"
10+
RUNNER="$RUN_DIR/test_single.sh"
811
PASS_COUNT=0
912
FAIL_COUNT=0
1013
FAILED_TESTS=()

src/tests/test_single.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/usr/bin/env bash
2-
source ./common.sh
2+
RUN_DIR=src/tests/
3+
4+
source $RUN_DIR/common.sh
35

46
# IO.Process.exit (used by the file worker) seems to be incompatible with LSAN
57
# TODO: investigate or work around
68
export ASAN_OPTIONS=detect_leaks=0
79

810
# these tests don't have to succeed
9-
exec_capture lean -Dlinter.all=false --run ./run.lean "$f" || true
11+
exec_capture lean -Dlinter.all=false --run "$RUN_DIR/run.lean" -p "$f" || true
1012
diff_produced

0 commit comments

Comments
 (0)