@@ -7,7 +7,7 @@ program test_ascii
7
7
is_digit, is_octal_digit, is_hex_digit, is_white, is_blank, &
8
8
is_control, is_punctuation, is_graphical, is_printable, is_ascii, &
9
9
to_lower, to_upper, to_title, reverse, LF, TAB, NUL, DEL, &
10
- to_char
10
+ to_string
11
11
use stdlib_kinds, only : int8, int16, int32, int64
12
12
13
13
implicit none
@@ -75,7 +75,7 @@ program test_ascii
75
75
call test_to_title_string
76
76
call test_reverse_string
77
77
78
- call test_char_value
78
+ call test_to_string
79
79
80
80
contains
81
81
@@ -617,47 +617,47 @@ subroutine test_reverse_string
617
617
call check(trim (adjustl (dlc)) == " desrever" )
618
618
end subroutine test_reverse_string
619
619
620
- subroutine test_char_value
620
+ subroutine test_to_string
621
621
character (len= 128 ) :: flc
622
622
623
623
write (flc, ' (g0)' ) 1026192
624
- call check(to_char (1026192 ) == trim (flc))
624
+ call check(to_string (1026192 ) == trim (flc))
625
625
626
626
write (flc, ' (g0)' ) - 124784
627
- call check(to_char (- 124784 ) == trim (flc))
627
+ call check(to_string (- 124784 ) == trim (flc))
628
628
629
629
write (flc, ' (g0)' ) 1_int8
630
- call check(to_char (1_int8 ) == trim (flc))
630
+ call check(to_string (1_int8 ) == trim (flc))
631
631
632
632
write (flc, ' (g0)' ) - 3_int8
633
- call check(to_char (- 3_int8 ) == trim (flc))
633
+ call check(to_string (- 3_int8 ) == trim (flc))
634
634
635
635
write (flc, ' (g0)' ) 80_int16
636
- call check(to_char (80_int16 ) == trim (flc))
636
+ call check(to_string (80_int16 ) == trim (flc))
637
637
638
638
write (flc, ' (g0)' ) 8924890_int32
639
- call check(to_char (8924890_int32 ) == trim (flc))
639
+ call check(to_string (8924890_int32 ) == trim (flc))
640
640
641
641
write (flc, ' (g0)' ) - 2378401_int32
642
- call check(to_char (- 2378401_int32 ) == trim (flc))
642
+ call check(to_string (- 2378401_int32 ) == trim (flc))
643
643
644
644
write (flc, ' (g0)' ) - 921092378401_int64
645
- call check(to_char (- 921092378401_int64 ) == trim (flc))
645
+ call check(to_string (- 921092378401_int64 ) == trim (flc))
646
646
647
647
write (flc, ' (g0)' ) 1272835771_int64
648
- call check(to_char (1272835771_int64 ) == trim (flc))
648
+ call check(to_string (1272835771_int64 ) == trim (flc))
649
649
650
650
write (flc, ' (g0)' ) .true.
651
- call check(to_char (.true. ) == trim (flc))
651
+ call check(to_string (.true. ) == trim (flc))
652
652
653
653
write (flc, ' (g0)' ) .false.
654
- call check(to_char (.false. ) == trim (flc))
654
+ call check(to_string (.false. ) == trim (flc))
655
655
656
656
write (flc, ' (g0)' ) .true. _int8
657
- call check(to_char (.true. _int8) == trim (flc))
657
+ call check(to_string (.true. _int8) == trim (flc))
658
658
659
659
write (flc, ' (g0)' ) .false. _int64
660
- call check(to_char (.false. _int64) == trim (flc))
661
- end subroutine test_char_value
660
+ call check(to_string (.false. _int64) == trim (flc))
661
+ end subroutine test_to_string
662
662
663
663
end program test_ascii
0 commit comments