Fix minor flaws in reporting bad messages by jt65code and jt9code.

This commit is contained in:
Joe Taylor 2018-08-31 11:22:06 -04:00
parent a8ad1569cc
commit 81af6f1ed3
3 changed files with 11 additions and 7 deletions

View File

@ -82,10 +82,12 @@ program JT65code
call fmtmsg(decoded,iz)
10 bad=" "
if(decoded.ne.msgchk) bad="*"
expected = 'EXACT'
if (msg0.ne.msgchk) expected = 'TRUNCATED'
if (nmsg.eq.1) expected = 'UNKNOWN'
if(decoded.ne.msg0) then
bad="*"
if(decoded(1:13).eq.msg0(1:13) .and. &
decoded(14:22).eq. ' ') expected = 'TRUNCATED'
endif
write(*,1020) imsg,msg0,decoded,bad,itype,msgtype,expected
1020 format(i2,'.',1x,a22,1x,a22,1x,a1,i3,":",a10,2x,a22)
enddo

View File

@ -71,9 +71,11 @@ program jt9code
10 bad=" "
expected = 'EXACT'
if (msg0.ne.msgchk) expected = 'TRUNCATED'
if (nmsg.eq.1) expected = 'UNKNOWN'
if(decoded.ne.msgchk) bad="*"
if(decoded.ne.msg0) then
bad="*"
if(decoded(1:13).eq.msg0(1:13) .and. &
decoded(14:22).eq. ' ') expected = 'TRUNCATED'
endif
write(*,1020) imsg,msg0,decoded,bad,itype,msgtype,expected
1020 format(i2,'.',1x,a22,1x,a22,1x,a1,i3,":",a10,2x,a22)
enddo

View File

@ -16,7 +16,7 @@
"KA1ABC WB9XYZ RRR", &
"KA1ABC WB9XYZ 73", &
"KA1ABC WB9XYZ", &
"CQ 000 WB9XYZ EN34", &
"CQ 010 WB9XYZ EN34", &
"CQ 999 WB9XYZ EN34", &
"CQ EU WB9XYZ EN34", &
"CQ WY WB9XYZ EN34", &