@@ -599,12 +599,12 @@ def hover_request(file_path, line, char):
599
599
check_return (results [10 ], ((3 , " !! Doc 9" ), (4 , " !! Doc 10" )))
600
600
601
601
602
- def test_diagnostic_interfaces ():
602
+ def test_diagnostics ():
603
603
"""
604
- Tests the diagnostics for subroutines and functions with interfaces
605
- as arguments
604
+ Tests some aspects of diagnostics
606
605
"""
607
606
string = write_rpc_request (1 , "initialize" , {"rootPath" : test_dir })
607
+ # Test subroutines and functions with interfaces as arguments
608
608
file_path = os .path .join (test_dir , "test_diagnostic_int.f90" )
609
609
string += write_rpc_notification (
610
610
"textDocument/didOpen" , {"textDocument" : {"uri" : file_path }}
@@ -614,6 +614,11 @@ def test_diagnostic_interfaces():
614
614
string += write_rpc_notification (
615
615
"textDocument/didOpen" , {"textDocument" : {"uri" : file_path }}
616
616
)
617
+ # Test that submodules with spacings in their parent's names are parsed
618
+ file_path = os .path .join (test_dir , "test_submodule.f90" )
619
+ string += write_rpc_notification (
620
+ "textDocument/didOpen" , {"textDocument" : {"uri" : file_path }}
621
+ )
617
622
# Example of a diagnostics message
618
623
# string += write_rpc_notification(
619
624
# "textDocument/publishDiagnostics",
@@ -649,4 +654,4 @@ def test_diagnostic_interfaces():
649
654
test_refs ()
650
655
test_hover ()
651
656
test_docs ()
652
- test_diagnostic_interfaces ()
657
+ test_diagnostics ()
0 commit comments