WSJT-X/lib/77bit/test28.f90
2018-06-27 15:07:04 -04:00

22 lines
504 B
Fortran

program test28
character*13 call_0,call_1,base_call_1
character*1 cerr
do iline=1,999
read(*,'(a13)',end=999) call_0
call pack28(call_0,n28)
call unpack28(n28,call_1)
cerr=' '
if(call_0.ne.call_1) cerr='*'
if(call_1(1:1).eq.'<') then
i=index(call_1,'>')
base_call_1=call_1(2:i-1)//' '
endif
if(call_0.eq.base_call_1) cerr=' '
write(*,1010) call_0,n28,cerr,call_1
1010 format(a13,i12,2x,a1,2x,a13a13)
enddo
999 end program test28