File: cwtest2.cw

package info (click to toggle)
unixcw 1.1-3
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 204 kB
  • ctags: 286
  • sloc: ansic: 2,469; makefile: 32; sh: 16
file content (46 lines) | stat: -rw-r--r-- 1,235 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
Acceptance tests for CW sender program
======================================

Initialise test

}@C1;@M1;@E1;@O1;@G0;@A0;@T800;@W25;{

Demonstrate character set and combinations

}= CHARSET ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"$()+-./:;=?_ ={
}= The lazy dog jumps over the quick brown fox ={
}= COMBINATIONS [AR] [VA] [CT] ={

Test the limits of WPM, Hz, gap, and adjustment

}@W1;= 1 WPM @W60;= 60 WPM @W25;={
}@G0;= GAP 0 @G100;= GAP 100 @G0;={
}@A-50;= ADJ -50 @A50;= ADJ 50 @A0;={
}@T10;= TONE 10 @T1000;= TONE 1000 @T5000;= TONE 5000
@T10000;= TONE 10000 @T800;={

Switch some flags on and off

}@E0;= ECHO OFF @E1;= ECHO ON @E1;={
}@M0;= MSGS OFF @?M@M1;= MSGS ON @?M@M1;={
}@O0;= COMBO OFF [AR] [VA] [CT] @O1;= COMBO ON [AR] [VA] [CT] @O1;={
}@P0;= COMMENTS OFF {SOUNDED} @P1;= COMMENTS ON {NOT SOUNDED} @P1;={

Test the queries

}= QUERIES @?W@?T@?G@?A@?C@?E@?M@?O@?P ={
}= CW QUERIES @>W@>T@>G@>A@>C@>E@>M@>O@>P ={

Tests for errors on input

}= BAD CHARS |\#{}<> ={
}= BAD CMDS @J @B @@ @# @; @| ={
}= BAD CMD ARGS @W61;@W0;@W-10;@T-1;@T10001;@T-100;@G-1;@G101;@G999;{
}@A-51;@A51; ={
}= BAD QUERIES @?J @?B @?@ @?; @?| ={
}= BAD CW QUERIES @>J @>B @>@ @>; @>| ={

Check that we can quit

}= QUIT @Q THIS TEXT WONT APPEAR