From 9adec5cd4c35fdf493663c32c246c342a428b874 Mon Sep 17 00:00:00 2001 From: Kuan-Chih Wang Date: Tue, 4 Mar 2025 12:12:06 -0700 Subject: [PATCH] Include the `len` keyword in length type parameters --- .../src/core_utils/test_string_core_utils.pf | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/test/unit/fortran/src/core_utils/test_string_core_utils.pf b/test/unit/fortran/src/core_utils/test_string_core_utils.pf index 50a8b99e..1498ed76 100644 --- a/test/unit/fortran/src/core_utils/test_string_core_utils.pf +++ b/test/unit/fortran/src/core_utils/test_string_core_utils.pf @@ -72,7 +72,7 @@ subroutine test_stringify_empty_arrays() use funit use string_core_utils, only: core_stringify - character(128), allocatable :: carr(:) + character(len=128), allocatable :: carr(:) integer(int32), allocatable :: i32arr(:) integer(int64), allocatable :: i64arr(:) logical, allocatable :: larr(:) @@ -95,20 +95,20 @@ subroutine test_stringify_character_array() use funit use string_core_utils, only: core_stringify - character(*), parameter :: custom_separator = '<' - character(*), parameter :: custom_separator_with_spaces = ' < ' - character(*), parameter :: expected_default_separator = & + character(len=*), parameter :: custom_separator = '<' + character(len=*), parameter :: custom_separator_with_spaces = ' < ' + character(len=*), parameter :: expected_default_separator = & 'Talc, Gypsum, Calcite, Fluorite, Apatite, Orthoclase, Quartz, Topaz, Corundum, Diamond' - character(*), parameter :: expected_custom_separator = & + character(len=*), parameter :: expected_custom_separator = & 'Talc