@@ -72,7 +72,7 @@ subroutine test_stringify_empty_arrays()
72
72
use funit
73
73
use string_core_utils, only: core_stringify
74
74
75
- character(128), allocatable :: carr(:)
75
+ character(len= 128), allocatable :: carr(:)
76
76
integer(int32), allocatable :: i32arr(:)
77
77
integer(int64), allocatable :: i64arr(:)
78
78
logical, allocatable :: larr(:)
@@ -95,20 +95,20 @@ subroutine test_stringify_character_array()
95
95
use funit
96
96
use string_core_utils, only: core_stringify
97
97
98
- character(*), parameter :: custom_separator = '<'
99
- character(*), parameter :: custom_separator_with_spaces = ' < '
100
- character(*), parameter :: expected_default_separator = &
98
+ character(len= *), parameter :: custom_separator = '<'
99
+ character(len= *), parameter :: custom_separator_with_spaces = ' < '
100
+ character(len= *), parameter :: expected_default_separator = &
101
101
'Talc, Gypsum, Calcite, Fluorite, Apatite, Orthoclase, Quartz, Topaz, Corundum, Diamond'
102
- character(*), parameter :: expected_custom_separator = &
102
+ character(len= *), parameter :: expected_custom_separator = &
103
103
'Talc<Gypsum<Calcite<Fluorite<Apatite<Orthoclase<Quartz<Topaz<Corundum<Diamond'
104
- character(*), parameter :: expected_custom_separator_with_spaces = &
104
+ character(len= *), parameter :: expected_custom_separator_with_spaces = &
105
105
'Talc < Gypsum < Calcite < Fluorite < Apatite < Orthoclase < Quartz < Topaz < Corundum < Diamond'
106
106
107
- character(128), allocatable :: carr(:)
107
+ character(len= 128), allocatable :: carr(:)
108
108
109
109
allocate(carr(10))
110
110
111
- carr(:) = [ character(len(carr)) :: &
111
+ carr(:) = [ character(len=len (carr)) :: &
112
112
' Talc', 'Gypsum', 'Calcite', 'Fluorite', 'Apatite', &
113
113
'Orthoclase', 'Quartz', ' Topaz', 'Corundum', 'Diamond' ]
114
114
@@ -126,13 +126,13 @@ subroutine test_stringify_integer_array()
126
126
use funit
127
127
use string_core_utils, only: core_stringify
128
128
129
- character(*), parameter :: custom_separator = '<'
130
- character(*), parameter :: custom_separator_with_spaces = ' < '
131
- character(*), parameter :: expected_default_separator = &
129
+ character(len= *), parameter :: custom_separator = '<'
130
+ character(len= *), parameter :: custom_separator_with_spaces = ' < '
131
+ character(len= *), parameter :: expected_default_separator = &
132
132
'-10000, -1000, -100, -10, -1, 1, 10, 100, 1000, 10000'
133
- character(*), parameter :: expected_custom_separator = &
133
+ character(len= *), parameter :: expected_custom_separator = &
134
134
'-10000<-1000<-100<-10<-1<1<10<100<1000<10000'
135
- character(*), parameter :: expected_custom_separator_with_spaces = &
135
+ character(len= *), parameter :: expected_custom_separator_with_spaces = &
136
136
'-10000 < -1000 < -100 < -10 < -1 < 1 < 10 < 100 < 1000 < 10000'
137
137
138
138
integer(int32), allocatable :: i32arr(:)
@@ -160,14 +160,14 @@ subroutine test_stringify_integer_extreme_values()
160
160
use funit
161
161
use string_core_utils, only: core_stringify
162
162
163
- character(*), parameter :: custom_separator_with_spaces = ' < '
164
- character(*), parameter :: expected_int32_default_separator = &
163
+ character(len= *), parameter :: custom_separator_with_spaces = ' < '
164
+ character(len= *), parameter :: expected_int32_default_separator = &
165
165
'-2147483647, -1000, -100, -10, -1, 1, 10, 100, 1000, 2147483647'
166
- character(*), parameter :: expected_int64_default_separator = &
166
+ character(len= *), parameter :: expected_int64_default_separator = &
167
167
'-9223372036854775807, -1000, -100, -10, -1, 1, 10, 100, 1000, 9223372036854775807'
168
- character(*), parameter :: expected_int32_custom_separator_with_spaces = &
168
+ character(len= *), parameter :: expected_int32_custom_separator_with_spaces = &
169
169
'-2147483647 < -1000 < -100 < -10 < -1 < 1 < 10 < 100 < 1000 < 2147483647'
170
- character(*), parameter :: expected_int64_custom_separator_with_spaces = &
170
+ character(len= *), parameter :: expected_int64_custom_separator_with_spaces = &
171
171
'-9223372036854775807 < -1000 < -100 < -10 < -1 < 1 < 10 < 100 < 1000 < 9223372036854775807'
172
172
173
173
integer(int32), allocatable :: i32arr(:)
@@ -193,15 +193,15 @@ subroutine test_stringify_floating_point_array()
193
193
use funit
194
194
use string_core_utils, only: core_stringify
195
195
196
- character(*), parameter :: custom_separator = '<'
197
- character(*), parameter :: custom_separator_with_spaces = ' < '
198
- character(*), parameter :: expected_default_separator = &
196
+ character(len= *), parameter :: custom_separator = '<'
197
+ character(len= *), parameter :: custom_separator_with_spaces = ' < '
198
+ character(len= *), parameter :: expected_default_separator = &
199
199
'-10000.000000, -1000.000000, -100.000000, -10.000000, -1.000000, ' // &
200
200
' 1.000000, 10.000000, 100.000000, 1000.000000, 10000.000000'
201
- character(*), parameter :: expected_custom_separator = &
201
+ character(len= *), parameter :: expected_custom_separator = &
202
202
'-10000.000000< -1000.000000< -100.000000< -10.000000< -1.000000<' // &
203
203
' 1.000000< 10.000000< 100.000000< 1000.000000< 10000.000000'
204
- character(*), parameter :: expected_custom_separator_with_spaces = &
204
+ character(len= *), parameter :: expected_custom_separator_with_spaces = &
205
205
'-10000.000000 < -1000.000000 < -100.000000 < -10.000000 < -1.000000 < ' // &
206
206
' 1.000000 < 10.000000 < 100.000000 < 1000.000000 < 10000.000000'
207
207
@@ -231,11 +231,11 @@ subroutine test_stringify_floating_point_scientific_notation()
231
231
use funit
232
232
use string_core_utils, only: core_stringify
233
233
234
- character(*), parameter :: custom_separator_with_spaces = ' < '
235
- character(*), parameter :: expected_default_separator = &
234
+ character(len= *), parameter :: custom_separator_with_spaces = ' < '
235
+ character(len= *), parameter :: expected_default_separator = &
236
236
'-1.000000E+05, -1.000000E+03, -1.000000E+02, -1.000000E+01, -1.000000E+00, ' // &
237
237
' 1.000000E+00, 1.000000E+01, 1.000000E+02, 1.000000E+03, 1.000000E+05'
238
- character(*), parameter :: expected_custom_separator_with_spaces = &
238
+ character(len= *), parameter :: expected_custom_separator_with_spaces = &
239
239
'-1.000000E+05 < -1.000000E+03 < -1.000000E+02 < -1.000000E+01 < -1.000000E+00 < ' // &
240
240
' 1.000000E+00 < 1.000000E+01 < 1.000000E+02 < 1.000000E+03 < 1.000000E+05'
241
241
@@ -260,17 +260,17 @@ subroutine test_stringify_floating_point_extreme_values()
260
260
use funit
261
261
use string_core_utils, only: core_stringify
262
262
263
- character(*), parameter :: custom_separator_with_spaces = ' < '
264
- character(*), parameter :: expected_real32_default_separator = &
263
+ character(len= *), parameter :: custom_separator_with_spaces = ' < '
264
+ character(len= *), parameter :: expected_real32_default_separator = &
265
265
'-3.402823E+38, -1.000000E+03, -1.000000E+02, -1.000000E+01, -1.000000E+00, ' // &
266
266
' 1.000000E+00, 1.000000E+01, 1.000000E+02, 1.000000E+03, 3.402823E+38'
267
- character(*), parameter :: expected_real64_default_separator = &
267
+ character(len= *), parameter :: expected_real64_default_separator = &
268
268
'-9.999999E+99, -1.000000E+03, -1.000000E+02, -1.000000E+01, -1.000000E+00, ' // &
269
269
' 1.000000E+00, 1.000000E+01, 1.000000E+02, 1.000000E+03, 9.999999E+99'
270
- character(*), parameter :: expected_real32_custom_separator_with_spaces = &
270
+ character(len= *), parameter :: expected_real32_custom_separator_with_spaces = &
271
271
'-3.402823E+38 < -1.000000E+03 < -1.000000E+02 < -1.000000E+01 < -1.000000E+00 < ' // &
272
272
' 1.000000E+00 < 1.000000E+01 < 1.000000E+02 < 1.000000E+03 < 3.402823E+38'
273
- character(*), parameter :: expected_real64_custom_separator_with_spaces = &
273
+ character(len= *), parameter :: expected_real64_custom_separator_with_spaces = &
274
274
'-9.999999E+99 < -1.000000E+03 < -1.000000E+02 < -1.000000E+01 < -1.000000E+00 < ' // &
275
275
' 1.000000E+00 < 1.000000E+01 < 1.000000E+02 < 1.000000E+03 < 9.999999E+99'
276
276
@@ -296,13 +296,13 @@ subroutine test_stringify_logical_array()
296
296
use funit
297
297
use string_core_utils, only: core_stringify
298
298
299
- character(*), parameter :: custom_separator = '.or.'
300
- character(*), parameter :: custom_separator_with_spaces = ' .or. '
301
- character(*), parameter :: expected_default_separator = &
299
+ character(len= *), parameter :: custom_separator = '.or.'
300
+ character(len= *), parameter :: custom_separator_with_spaces = ' .or. '
301
+ character(len= *), parameter :: expected_default_separator = &
302
302
'T, F, T, F, T, F, T, F, T, F'
303
- character(*), parameter :: expected_custom_separator = &
303
+ character(len= *), parameter :: expected_custom_separator = &
304
304
'T.or.F.or.T.or.F.or.T.or.F.or.T.or.F.or.T.or.F'
305
- character(*), parameter :: expected_custom_separator_with_spaces = &
305
+ character(len= *), parameter :: expected_custom_separator_with_spaces = &
306
306
'T .or. F .or. T .or. F .or. T .or. F .or. T .or. F .or. T .or. F'
307
307
308
308
logical, allocatable :: larr(:)
0 commit comments