File: test.cw

package info (click to toggle)
unixcw 2.2-11
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,132 kB
  • ctags: 706
  • sloc: ansic: 6,737; cpp: 1,935; makefile: 341; sh: 214; awk: 209
file content (79 lines) | stat: -rw-r--r-- 1,585 bytes parent folder | download
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
        Acceptance tests for CW sender program
        ======================================

Test the limits of the CW sender program, and verify its response under
error input conditions.

}{

Initialise the test to 30 WPM, 800Hz, 70% volume, no gaps

}@C1;@P1;@M1;@E1;@O1;@G0;@T800;@V70;@W30;{

Demonstrate character set and combinations

}= {CHARSET     } ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"$()+-./:;=?_ ={
}= {MIXED CASE  } The lazy dog jumps over the quick brown fox ={
}= {COMBINATIONS} [A]R [V]A [C]T ={

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

}@W4;= 4 WPM
@W60;= 60 WPM
@W30;={

}@G0;= GAP 0
@G20;= GAP 20
@G0;={

}@T0;= TONE 0
@T10;= TONE 10
@T100;= TONE 100
@T1000;= TONE 1000
@T2000;= TONE 2000
@T4000;= TONE 4000
@T800;={

}@V0;= VOL 0
@V20;= VOL 20
@V40;= VOL 40
@V60;= VOL 60
@V80;= VOL 80
@V100;= VOL 100
@V70;={

Switch flags on and off

}@E0;= ECHO OFF
@?E@E1;= ECHO ON
@?E@E1;={

}@M0;= MESSAGES OFF
@?M@M1;= MESSAGES ON
@?M@M1;={

}@O0;= {COMBINATIONS OFF} [A]R [V]A [C]T
@?O@O1;= {COMBINATIONS ON} [A]R [V]A [C]T
@?O@O1;={

}@P0;= {COMMENTS OFF, SOUNDED}
@?P@P1;= {COMMENTS ON, NOT SOUNDED}
@?P@P1;={

Test the queries

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

Tests for errors on input

}= {BAD CHARS       } | \ # { } < > ={
}= {BAD COMMANDS    } @J @B @@ @# @; @| ={
}= {BAD COMMAND ARGS} @W61;@W0;@W-10;@T-1;@T4001;@T-100;@V-1;@V101;@G-1;@G21; ={
}= {BAD QUERIES     } @?J @?B @?@ @?; @?| ={
}= {BAD CW QUERIES  } @>J @>B @>@ @>; @>| ={

Check that we can quit

}= QUIT @Q THIS TEXT WONT APPEAR