blob: 6f88a89a9614cd15467c858825a724c9ebbfa428 (
plain)
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
|
SC16: Test <special>^ sequence.
1. Test that all base characters work (in both cases).
These should provoke no errors.
@^B(00000000) @^b(00000000)
@^O(000) @^o(000)
@^Q(000) @^q(000)
@^D(000) @^d(000)
@^H(00) @^h(00)
@^X(00) @^x(00)
2. Test that some other base characters generate an error.
@^u(0)
@^y
@^#
@^(
3. Test that an error is generated if parenthesis is missing.
@^D34)
4. Test legal digits in each base.
@^B(00001111)
@^O(012) @^O(034) @^O(056) @^O(077)
@^D(012) @^D(034) @^D(056) @^D(078) @^D(099)
@^H(01) @^H(23) @^H(45) @^H(67)
@^H(89) @^H(AB) @^X(CD) @^X(EF) @^x(af)
5. Test illegal digits in each base.
@^B(00000002)
@^O(008)
@^D(00A)
@^H(0G)
6. Test what happens if there are the wrong number of digits
(too few, too many).
@^B(1)
@^O(1)
@^D(1)
@^H(1)
@^B(000000001)
@^O(0004)
@^D(0001)
@^H(005)
7. Test that an error is generated for a missing closing parenthesis.
@^B(00000000
@^D(045(
8. Test what happens in number is out of the range [0,255].
@^D(255)
@^D(256)
@^D(999)
|