Skip to content

Commit 320a30f

Browse files
committed
Add coverage for variable + documentation
1 parent b1ae33f commit 320a30f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/test_server_documentation.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ def test_doc_type_bound_procedure_sub_implementation():
8888
check_return(results[1], ((1, "!! Doc 4"), (4, " !! Doc 5")))
8989

9090

91+
def test_doc_variable():
92+
string = write_rpc_request(1, "initialize", {"rootPath": str(test_dir)})
93+
file_path = test_dir / "subdir" / "test_free.f90"
94+
# n !! Doc 5
95+
# Test that a variable can carry over documentation
96+
string += hover_request(file_path, 37, 26)
97+
errcode, results = run_request(string)
98+
assert errcode == 0
99+
check_return(results[1], ((1, " !! Doc 5"),))
100+
101+
91102
def test_doc_overwrite_type_bound_procedure_fun():
92103
string = write_rpc_request(1, "initialize", {"rootPath": str(test_dir)})
93104
file_path = test_dir / "subdir" / "test_free.f90"

0 commit comments

Comments
 (0)