@@ -30,6 +30,18 @@ def check_return(result_array, checks):
30
30
string += hover_req (file_path , 10 , 15 ) # defined without ()
31
31
file_path = root_dir / "preproc_keywords.F90"
32
32
string += hover_req (file_path , 6 , 2 ) # ignores PP across Fortran line continuations
33
+ file_path = root_dir / "preproc_else.F90"
34
+ string += hover_req (file_path , 8 , 12 )
35
+ string += hover_req (file_path , 18 , 12 )
36
+ file_path = root_dir / "preproc_elif.F90"
37
+ string += hover_req (file_path , 22 , 15 )
38
+ string += hover_req (file_path , 24 , 10 )
39
+ file_path = root_dir / "preproc_elif_elif_skip.F90"
40
+ string += hover_req (file_path , 30 , 23 )
41
+ file_path = root_dir / "preproc_if_elif_else.F90"
42
+ string += hover_req (file_path , 30 , 23 )
43
+ file_path = root_dir / "preproc_if_elif_skip.F90"
44
+ string += hover_req (file_path , 30 , 23 )
33
45
config = str (root_dir / ".pp_conf.json" )
34
46
errcode , results = run_request (string , ["--config" , config ])
35
47
assert errcode == 0
@@ -49,6 +61,13 @@ def check_return(result_array, checks):
49
61
),
50
62
"```fortran90\n #define SUCCESS .true.\n ```" ,
51
63
"```fortran90\n REAL, CONTIGUOUS, POINTER, DIMENSION(:) :: var1\n ```" ,
64
+ "```fortran90\n INTEGER :: var0\n ```" ,
65
+ "```fortran90\n REAL :: var1\n ```" ,
66
+ "```fortran90\n INTEGER :: var2\n ```" ,
67
+ "```fortran90\n INTEGER, INTENT(INOUT) :: var\n ```" ,
68
+ "```fortran90\n INTEGER, PARAMETER :: res = 0+1+0+0\n ```" ,
69
+ "```fortran90\n INTEGER, PARAMETER :: res = 0+0+0+1\n ```" ,
70
+ "```fortran90\n INTEGER, PARAMETER :: res = 1+0+0+0\n ```" ,
52
71
)
53
72
assert len (ref_results ) == len (results ) - 1
54
73
check_return (results [1 :], ref_results )
0 commit comments