@@ -77,25 +77,25 @@ program help_test
77
77
message= ' '
78
78
call execute_command_line(path,exitstat= estat,cmdstat= cstat,cmdmsg= message)
79
79
write (* ,' (*(g0))' )' <INFO>CMD=' ,path,' EXITSTAT=' ,estat,' CMDSTAT=' ,cstat,' MESSAGE=' ,trim (message)
80
- tally= [tally,all ([estat.eq. 0 ,cstat.eq. 0 ])]
80
+ tally= [tally,all ([estat== 0 ,cstat== 0 ])]
81
81
call swallow(' fpm_scratch_help.txt' ,page1)
82
82
if (size (page1).lt. 3 )then
83
83
write (* ,* )' <ERROR>help for ' // names(i)// ' ridiculiously small'
84
84
tally= [tally,.false. ]
85
85
exit
86
86
endif
87
- ! !write(*,*)findloc(page1,'NAME').eq. 1
87
+ ! !write(*,*)findloc(page1,'NAME')== 1
88
88
be= count (.not. tally)
89
- tally= [tally,count (page1.eq. ' NAME' ).eq. 1 ]
90
- tally= [tally,count (page1.eq. ' SYNOPSIS' ).eq. 1 ]
91
- tally= [tally,count (page1.eq. ' DESCRIPTION' ).eq. 1 ]
89
+ tally= [tally,count (page1== ' NAME' )== 1 ]
90
+ tally= [tally,count (page1== ' SYNOPSIS' )== 1 ]
91
+ tally= [tally,count (page1== ' DESCRIPTION' )== 1 ]
92
92
af= count (.not. tally)
93
93
if (be.ne. af)then
94
94
write (* ,* )' <ERROR>missing expected sections in ' ,names(i)
95
95
write (* ,* )page1(1 ) ! assuming at least size 1 for debugging mingw
96
- write (* ,* )count (page1.eq. ' NAME' )
97
- write (* ,* )count (page1.eq. ' SYNOPSIS' )
98
- write (* ,* )count (page1.eq. ' DESCRIPTION' )
96
+ write (* ,* )count (page1== ' NAME' )
97
+ write (* ,* )count (page1== ' SYNOPSIS' )
98
+ write (* ,* )count (page1== ' DESCRIPTION' )
99
99
write (* ,' (a)' )page1
100
100
endif
101
101
write (* ,* )' <INFO>have completed ' ,count (tally),' tests'
@@ -109,15 +109,15 @@ program help_test
109
109
path= prog // cmds(i)
110
110
call execute_command_line(path,exitstat= estat,cmdstat= cstat,cmdmsg= message)
111
111
write (* ,' (*(g0))' )' <INFO>CMD=' ,path,' EXITSTAT=' ,estat,' CMDSTAT=' ,cstat,' MESSAGE=' ,trim (message)
112
- tally= [tally,all ([estat.eq. 0 ,cstat.eq. 0 ])]
112
+ tally= [tally,all ([estat== 0 ,cstat== 0 ])]
113
113
enddo
114
114
115
115
! compare book written in fragments with manual
116
116
call swallow(' fpm_scratch_help.txt' ,book1)
117
117
call swallow(' fpm_scratch_manual.txt' ,book2)
118
118
! get rid of lines from run() which is not on stderr at the moment
119
- book1= pack (book1,index (book1,' + build/' ).eq. 0 )
120
- book2= pack (book1,index (book2,' + build/' ).eq. 0 )
119
+ book1= pack (book1,index (book1,' + build/' )== 0 )
120
+ book2= pack (book1,index (book2,' + build/' )== 0 )
121
121
write (* ,* )' <INFO>book1 ' ,size (book1), len (book1)
122
122
write (* ,* )' <INFO>book2 ' ,size (book2), len (book2)
123
123
if (size (book1).ne. size (book2))then
@@ -135,7 +135,7 @@ program help_test
135
135
136
136
! overall size of manual
137
137
! chars=size(book2)
138
- ! lines=max(count(char(10).eq. book2),count(char(13).eq. book2))
138
+ ! lines=max(count(char(10)== book2),count(char(13)== book2))
139
139
chars= sum (len_trim (book2)) ! SUM TRIMMED LENGTH
140
140
lines= size (book2)
141
141
if ( (chars.lt. 12000 ) .or. (lines.lt. 350 ) )then
@@ -164,7 +164,7 @@ subroutine wipe(filename)
164
164
integer :: lun
165
165
character (len= k1) :: message
166
166
open (file= filename,newunit= lun,iostat= ios,iomsg= message)
167
- if (ios.eq. 0 )then
167
+ if (ios== 0 )then
168
168
close (unit= lun,iostat= ios,status= ' delete' ,iomsg= message)
169
169
if (ios.ne. 0 )then
170
170
write (* ,* )' <ERROR>' // trim (message)
@@ -188,7 +188,7 @@ subroutine slurp(filename,text)
188
188
open (newunit= igetunit, file= trim (filename), action= " read" , iomsg= message,&
189
189
&form= " unformatted" , access= " stream" ,status= ' old' ,iostat= ios)
190
190
local_filename= filename
191
- if (ios.eq. 0 )then ! if file was successfully opened
191
+ if (ios== 0 )then ! if file was successfully opened
192
192
inquire (unit= igetunit, size= nchars)
193
193
if (nchars.le. 0 )then
194
194
call stderr_local( ' *slurp* empty file ' // trim (local_filename) )
@@ -252,7 +252,7 @@ function page(array) result (table)
252
252
length= 0
253
253
sz= size (array)
254
254
do i= 1 ,sz
255
- if (array(i).eq. nl)then
255
+ if (array(i)== nl)then
256
256
linelength= max (linelength,length)
257
257
lines= lines+1
258
258
length= 0
@@ -273,10 +273,10 @@ function page(array) result (table)
273
273
linecount= 1
274
274
position= 1
275
275
do i= 1 ,sz
276
- if (array(i).eq. nl)then
276
+ if (array(i)== nl)then
277
277
linecount= linecount+1
278
278
position= 1
279
- elseif (array(i).eq. cr)then
279
+ elseif (array(i)== cr)then
280
280
elseif (linelength.ne. 0 )then
281
281
if (position.gt. len (table))then
282
282
write (* ,* )' <ERROR> adding character past edge of text' ,table(linecount),array(i)
0 commit comments