Skip to content

Commit 99954bb

Browse files
committed
update test_string_format_string.f90
1 parent 39d5d13 commit 99954bb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/specs/stdlib_strings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ program test_strings_format_string
410410
& "Too narrow formatter for signed real number", partial=.true.)
411411
call check_formatter(format_string(1000., '(F6.3)'), "*", &
412412
& "Too narrow formatter for real number", partial=.true.)
413-
call check_formatter(format_string(1000, '(F7.3)'), "*", &
414-
& "Real formatter for integer number", partial=.true.)
413+
call check_formatter(format_string(1000., '(7.3)'), "*", &
414+
& "Invalid formatter for real number", partial=.true.)
415415
print *, 'format_string(logical) : '
416416
call check_formatter(format_string(.true.), "T", &
417417
& "Default formatter for logcal value")
@@ -488,7 +488,7 @@ end program test_strings_format_string
488488
Result: '******'
489489
- Too narrow formatter for real number
490490
Result: '******'
491-
- Real formatter for integer number
491+
- Invalid formatter for real number
492492
Result: '*'
493493
format_string(logical) :
494494
- Default formatter for logcal value

src/tests/string/test_strings_format_string.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ program test_strings_format_string
4545
& "Too narrow formatter for signed real number", partial=.true.)
4646
call check_formatter(format_string(1000., '(F6.3)'), "*", &
4747
& "Too narrow formatter for real number", partial=.true.)
48-
call check_formatter(format_string(1000, '(F7.3)'), "*", &
49-
& "Real formatter for integer number", partial=.true.)
48+
call check_formatter(format_string(1000., '(7.3)'), "*", &
49+
& "Invalid formatter for real number", partial=.true.)
5050
print *, 'format_string(logical) : '
5151
call check_formatter(format_string(.true.), "T", &
5252
& "Default formatter for logcal value")

0 commit comments

Comments
 (0)