@@ -166,15 +166,24 @@ subroutine test_find
166166 type (string_type) :: test_string, test_pattern
167167 test_string = " qwqwqwqwqwqwqw"
168168 test_pattern = " qwq"
169- call check(find(test_string, test_pattern, 4 ) == 7 )
170- call check(find(test_string, test_pattern, 3 , .false. ) == 9 )
171- call check(find(test_string, test_pattern, 7 ) == 0 )
172- call check(find(" qwqwqwqwqwqwqw" , test_pattern) == 1 )
173- call check(find(test_string, " qwq" , 2 ) == 3 )
174- call check(find(" qwqwqwqwqwqwqw" , " qwq" , 2 , .false. ) == 5 )
175- call check(find(" " , " " ) == 0 )
176- call check(find(" " , test_pattern) == 0 )
177- call check(find(test_string, " " ) == 0 )
169+ call check(find(test_string, test_pattern, 4 ) == 7 , &
170+ & ' Find: test_string, test_pattern, 4' )
171+ call check(find(test_string, test_pattern, 3 , .false. ) == 9 , &
172+ & ' Find: test_string, test_pattern, 3' )
173+ call check(find(test_string, test_pattern, 7 ) == 0 , &
174+ & ' Find: test_string, test_pattern, 7' )
175+ call check(find(" qwqwqwqwqwqwqw" , test_pattern) == 1 , &
176+ & ' Find: "qwqwqwqwqwqwqw", test_pattern' )
177+ call check(find(test_string, " qwq" , 2 ) == 3 , &
178+ & ' Find: test_string, "qwq", 2' )
179+ call check(find(" qwqwqwqwqwqwqw" , " qwq" , 2 , .false. ) == 5 , &
180+ & ' Find: "qwqwqwqwqwqwqw", "qwq", 2, .false.' )
181+ call check(find(" " , " " ) == 0 , &
182+ & ' Find: "", ""' )
183+ call check(find(" " , test_pattern) == 0 , &
184+ & ' Find: "", test_pattern' )
185+ call check(find(test_string, " " ) == 0 , &
186+ & ' Find: test_string, ""' )
178187
179188 end subroutine test_find
180189
0 commit comments