File: test.cw

package info (click to toggle)
unixcw 2.0-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 764 kB
  • ctags: 645
  • sloc: ansic: 5,693; cpp: 1,736; makefile: 333; sh: 213; awk: 209
file content (70 lines) | stat: -rw-r--r-- 1,432 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
{
        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

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

Demonstrate character set and combinations

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

Test the limits of WPM, Hz, and gap

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

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

}@T0;= TONE 0
@T10;= TONE 10
@T1000;= TONE 1000
@T5000;= TONE 5000
@T10000;= TONE 10000
@T800;={

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} [AR] [VA] [CT]
@?O@O1;= {COMBINATIONS ON} [AR] [VA] [CT]
@?O@O1;={

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

Test the queries

}= {QUERIES   } @?W@?T@?G@?C@?E@?M@?O@?P ={
}= {CW QUERIES} @>W@>T@>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;@T10001;@T-100;@G-1;@G21;@G999; ={
}= {BAD QUERIES     } @?J @?B @?@ @?; @?| ={
}= {BAD CW QUERIES  } @>J @>B @>@ @>; @>| ={

Check that we can quit

}= QUIT @Q THIS TEXT WONT APPEAR