Skip to content

Commit 1216a9c

Browse files
authored
Add test_string_functions to CMakeLists and fix to_title test (#356)
* Add test_string_functions to CMakeLists * Fix: to_title_string test
1 parent 8a5f3d4 commit 1216a9c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/tests/string/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ ADDTEST(string_assignment)
22
ADDTEST(string_operator)
33
ADDTEST(string_intrinsic)
44
ADDTEST(string_derivedtype_io)
5+
ADDTEST(string_functions)
56

src/tests/string/Makefile.manual

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
PROGS_SRC = test_string_assignment.f90 \
22
test_string_derivedtype_io.f90 \
3+
test_string_functions.f90 \
34
test_string_intrinsic.f90 \
45
test_string_operator.f90
56

src/tests/string/test_string_functions.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ end subroutine test_to_upper_string
2828
subroutine test_to_title_string
2929
type(string_type) :: test_string, compare_string
3030
test_string = "_#To tiTlE !$%-az09AZ"
31-
compare_string = "_#To title !$%-a09az"
31+
compare_string = "_#To title !$%-az09az"
3232

3333
call check(to_title(test_string) == compare_string)
3434

0 commit comments

Comments
 (0)