Skip to content

Commit c81f267

Browse files
committed
add a simple test case
1 parent 5085ac5 commit c81f267

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/string/test_string_strip_chomp.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ subroutine test_chomp_substring_char(error)
151151
call check(error, chomp("hellooooo", "oo") == "hello")
152152
if (allocated(error)) return
153153
call check(error, chomp("hellooooo", substring="oo") == "hello")
154+
if (allocated(error)) return
155+
call check(error, chomp("helhel", substring="hel") == "")
154156
end subroutine test_chomp_substring_char
155157

156158
subroutine test_chomp_substring_string(error)

0 commit comments

Comments
 (0)