Skip to content

Commit e4273ab

Browse files
author
Carl Burkert
committed
Add proper tests for string_type concatenation
1 parent 82f8c8d commit e4273ab

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/tests/string/test_string_operator.f90

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,13 @@ subroutine test_ne
9999
end subroutine test_ne
100100

101101
subroutine test_concat
102-
type(string_type) :: string
102+
type(string_type) :: a, b
103103

104-
string = "Hello, "
105-
string = string // "World!"
106-
call check(len(string) == 13)
104+
a = "a"
105+
b = "b"
106+
call check("a" // b == "ab")
107+
call check( a // "b" == "ab")
108+
call check( a // b == "ab")
107109
end subroutine test_concat
108110

109111
end module test_string_operator

0 commit comments

Comments
 (0)