@@ -355,8 +355,8 @@ subroutine test_replace_all
355
355
call check(replace_all(test_string_1, " TAT" , " ATA" ) == &
356
356
& " mutate DNA sequence: GTATACGATAGCCGTAATATA" , &
357
357
& " replace_all: 1 string_type & 2 character scalar, test case 1" )
358
- call check(replace_all(" mutate DNA sequence: AGAGAGCCTAGAGAGAG" , test_pattern_2, &
359
- & " GC " ) == " mutate DNA sequence: GCGAGCCTGCGGCG" , &
358
+ call check(replace_all(" mutate DNA sequence: AGAGAGCCTAGAGAGAG" , test_pattern_2, " GC " ) == &
359
+ & " mutate DNA sequence: GCGAGCCTGCGGCG" , &
360
360
& " replace_all: 1 string_type & 2 character scalar, test case 2" )
361
361
call check(replace_all(" mutate DNA sequence: GTTATCGTATGCCGTAATTAT" , " TA" , &
362
362
& test_replacement_2) == " mutate DNA sequence: GTagaTCGagaTGCCGagaATagaT" , &
@@ -392,20 +392,20 @@ subroutine test_count
392
392
& ' count: all 2 as string_type, test case 2' )
393
393
call check(count (test_string_2, test_pattern_1, .false. ) == 1 , &
394
394
& ' count: all 2 as string_type, test case 3' )
395
- call check(all (count ([test_string_2, test_string_2, test_string_1], [test_pattern_2, &
396
- & test_pattern_2, test_pattern_1], [.true. , .false. , .false. ]) == [ 2 , 1 , 3 ]), &
397
- & ' count: all 2 as string_type, test case 4' )
398
- call check(all (count ([[test_string_1, test_string_2], [test_string_1, test_string_2]], [[test_pattern_1, &
399
- & test_pattern_2], [test_pattern_2, test_pattern_1]], .true. ) == [[ 4 , 2 ], [ 1 , 1 ]]), &
400
- & ' count: all 2 as string_type, test case 5' )
395
+ call check(all (count ([test_string_2, test_string_2, test_string_1], &
396
+ & [ test_pattern_2, test_pattern_2, test_pattern_1], [.true. , .false. , .false. ]) == &
397
+ & [ 2 , 1 , 3 ]), ' count: all 2 as string_type, test case 4' )
398
+ call check(all (count ([[test_string_1, test_string_2], [test_string_1, test_string_2]], &
399
+ & [[test_pattern_1, test_pattern_2], [test_pattern_2, test_pattern_1]], .true. ) == &
400
+ & [[ 4 , 2 ], [ 1 , 1 ]]), ' count: all 2 as string_type, test case 5' )
401
401
402
402
! 1 string_type and 1 character scalar
403
403
call check(all (count (test_string_1, [" AGA" , " GTC" ], [.true. , .false. ]) == [4 , 2 ]), &
404
404
& ' count: 1 string_type and 1 character scalar, test case 1' )
405
- call check(all (count ([test_string_1, test_string_2], [" CTC" , " GTC" ], [.true. , .false. ]) &
406
- & == [0 , 3 ]), ' count: 1 string_type and 1 character scalar, test case 2' )
407
- call check(all (count ([" AGAGAGAGTCCTGTCGAGA" , " AGAGAGAGTCCTGTCGAGA" ], test_pattern_1, &
408
- & [.false. , .true. ]) == [3 , 4 ]), &
405
+ call check(all (count ([test_string_1, test_string_2], [" CTC" , " GTC" ], [.true. , .false. ]) == &
406
+ & [0 , 3 ]), ' count: 1 string_type and 1 character scalar, test case 2' )
407
+ call check(all (count ([" AGAGAGAGTCCTGTCGAGA" , " AGAGAGAGTCCTGTCGAGA" ], &
408
+ & test_pattern_1, [.false. , .true. ]) == [3 , 4 ]), &
409
409
& ' count: 1 string_type and 1 character scalar, test case 3' )
410
410
call check(count (test_string_1, " GAG" ) == 4 , &
411
411
& ' count: 1 string_type and 1 character scalar, test case 4' )
0 commit comments