diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:35:06 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:35:06 +0100 |
| commit | 82ebb1ed1af30cee4dfbb1c628431d32885a00e0 (patch) | |
| tree | 1a1f782d3e576b758be0bc61171574a7cd8f2376 /tests/unit/jtty/test_jtty_source_codec.f90 | |
| parent | 061658210acb6425517733ea012dda803a7f72a1 (diff) | |
| parent | 61d684922b0f1c8455cc60eb3d123df058c9e1f5 (diff) | |
Merge tag 'debian/3.3.0_beta2+dfsg-1' into hibbian/trixie-backports
tagging wsjtx 3.3.0~beta2+dfsg-1
Diffstat (limited to 'tests/unit/jtty/test_jtty_source_codec.f90')
| -rw-r--r-- | tests/unit/jtty/test_jtty_source_codec.f90 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/unit/jtty/test_jtty_source_codec.f90 b/tests/unit/jtty/test_jtty_source_codec.f90 index dead01d8..3d1ee9b0 100644 --- a/tests/unit/jtty/test_jtty_source_codec.f90 +++ b/tests/unit/jtty/test_jtty_source_codec.f90 @@ -1,5 +1,6 @@ program test_jtty_source_codec use jtty_mod + use packjt77_grammar, only: pack77_arrl_section_index implicit none type(jtty_source_atom) :: atom,decoded,atoms(2) character(len=34) :: frame,frames(MAX_FRAMES) @@ -30,6 +31,24 @@ program test_jtty_source_codec '0000000111000000000000000001001001','0000000111100000000000000001001001', & '0000001000000000000000000001001001','0000001000100000000000000001001001'] + ! Section IDs are transmitted on the wire; preserve their assigned names. + character(len=3), parameter :: SECTION_NAMES(86)=[character(len=3) :: & + 'AB','AK','AL','AR','AZ','BC','CO','CT','DE','EB', & + 'EMA','ENY','EPA','EWA','GA','GH','IA','ID','IL','IN', & + 'KS','KY','LA','LAX','NS','MB','MDC','ME','MI','MN', & + 'MO','MS','MT','NC','ND','NE','NFL','NH','NL','NLI', & + 'NM','NNJ','NNY','TER','NTX','NV','OH','OK','ONE','ONN', & + 'ONS','OR','ORG','PAC','PR','QC','RI','SB','SC','SCV', & + 'SD','SDG','SF','SFL','SJV','SK','SNJ','STX','SV','TN', & + 'UT','VA','VI','VT','WCF','WI','WMA','WNY','WPA','WTX', & + 'WV','WWA','WY','DX','PE','NB'] + + if(PACK77_NSEC.ne.size(SECTION_NAMES)) error stop 'Section registry size changed' + do i=1,size(SECTION_NAMES) + if(pack77_arrl_section_index(SECTION_NAMES(i)).ne.i) error stop 'Section wire ID changed' + call expect_render(jtty_class_section_atom(1,'A',i),'1A '//trim(SECTION_NAMES(i))) + enddo + do i=0,5 call expect_vector(jtty_call_atom(i,'K1ABC'),CALL_VECTORS(i)) enddo |
