|
1 | 1 | program help_test
|
2 | 2 | use,intrinsic :: iso_fortran_env, only : stdin=>input_unit, stdout=>output_unit, stderr=>error_unit
|
3 | 3 | implicit none
|
4 |
| -integer :: i |
| 4 | +integer :: i, j |
5 | 5 | integer :: be, af
|
6 | 6 | character(len=:),allocatable :: path
|
7 | 7 | integer :: estat, cstat
|
@@ -54,13 +54,17 @@ program help_test
|
54 | 54 | endif
|
55 | 55 | !!write(*,*)findloc(page1,'NAME').eq.1
|
56 | 56 | be=count(.not.tally)
|
57 |
| - tally=[tally,merge(.true.,.false.,count(page1.eq.'NAME').eq.1)] |
58 |
| - tally=[tally,merge(.true.,.false.,count(page1.eq.'SYNOPSIS').eq.1)] |
59 |
| - tally=[tally,merge(.true.,.false.,count(page1.eq.'DESCRIPTION').eq.1)] |
| 57 | + tally=[tally,count(page1.eq.'NAME').eq.1] |
| 58 | + tally=[tally,count(page1.eq.'SYNOPSIS').eq.1] |
| 59 | + tally=[tally,count(page1.eq.'DESCRIPTION').eq.1] |
60 | 60 | af=count(.not.tally)
|
61 | 61 | if(be.ne.af)then
|
62 | 62 | write(*,*)'<ERROR>missing expected sections in ',names(i)
|
63 |
| - write(*,'(a)')page1 |
| 63 | + write(*,*)page1(1) ! assuming at least size 1 for debugging mingw |
| 64 | + write(*,*)count(page1.eq.'NAME') |
| 65 | + write(*,*)count(page1.eq.'SYNOPSIS') |
| 66 | + write(*,*)count(page1.eq.'DESCRIPTION') |
| 67 | + write(*,'(a)')(trim(page1(j)),j=1,size(page1)) |
64 | 68 | endif
|
65 | 69 | write(*,*)'<INFO>have completed ',count(tally),' tests'
|
66 | 70 | call wipe('fpm_scratch_help.txt')
|
|
0 commit comments