Skip to content

Commit

Permalink
Add test_string_functions to CMakeLists and fix to_title test (#356)
Browse files Browse the repository at this point in the history
* Add test_string_functions to CMakeLists

* Fix: to_title_string test
  • Loading branch information
LKedward committed Mar 22, 2021
1 parent 8a5f3d4 commit 1216a9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/tests/string/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ ADDTEST(string_assignment)
ADDTEST(string_operator)
ADDTEST(string_intrinsic)
ADDTEST(string_derivedtype_io)
ADDTEST(string_functions)

1 change: 1 addition & 0 deletions src/tests/string/Makefile.manual
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PROGS_SRC = test_string_assignment.f90 \
test_string_derivedtype_io.f90 \
test_string_functions.f90 \
test_string_intrinsic.f90 \
test_string_operator.f90

Expand Down
2 changes: 1 addition & 1 deletion src/tests/string/test_string_functions.f90
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ end subroutine test_to_upper_string
subroutine test_to_title_string
type(string_type) :: test_string, compare_string
test_string = "_#To tiTlE !$%-az09AZ"
compare_string = "_#To title !$%-a09az"
compare_string = "_#To title !$%-az09az"

call check(to_title(test_string) == compare_string)

Expand Down

0 comments on commit 1216a9c

Please sign in to comment.