@@ -30,6 +30,18 @@ def check_return(result_array, checks):
3030 string += hover_req (file_path , 10 , 15 ) # defined without ()
3131 file_path = root_dir / "preproc_keywords.F90"
3232 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 )
3345 config = str (root_dir / ".pp_conf.json" )
3446 errcode , results = run_request (string , ["--config" , config ])
3547 assert errcode == 0
@@ -49,6 +61,13 @@ def check_return(result_array, checks):
4961 ),
5062 "```fortran90\n #define SUCCESS .true.\n ```" ,
5163 "```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 ```" ,
5271 )
5372 assert len (ref_results ) == len (results ) - 1
5473 check_return (results [1 :], ref_results )
0 commit comments