aboutsummaryrefslogtreecommitdiffstats
path: root/tests/sms/sms_test.ok
blob: 77b22eca33ff71159cf13646098a903e2a160076 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
SMS testing
Legacy encode case 0: septet length 9 (expected 9)
Encode case 0: Octet length 8 (expected 8, computed 8), septet length 9 (expected 9)
Legacy encode case 1: septet length 41 (expected 41)
Encode case 1: Octet length 36 (expected 36, computed 36), septet length 41 (expected 41)
Legacy encode case 2: septet length 39 (expected 39)
Encode case 2: Octet length 35 (expected 35, computed 35), septet length 39 (expected 39)
Legacy encode case 3: septet length 40 (expected 40)
Encode case 3: Octet length 35 (expected 35, computed 35), septet length 40 (expected 40)
Legacy decode case 0: return value 9 (expected 9)
Decode case 0: return value 9 (expected 9)
Legacy decode case 1: return value 41 (expected 41)
Decode case 1: return value 40 (expected 40)
Legacy decode case 2: return value 39 (expected 39)
Decode case 2: return value 31 (expected 31)
Legacy decode case 3: return value 40 (expected 40)
Decode case 3: return value 32 (expected 32)
Decode case 4: return value 153 (expected 153)
Decode case 5: return value 40 (expected 40)
Encoding some tests and printing number of septets/octets
SEPTETS: 8 OCTETS: 7
Done
Testing gsm340_gen_address_field
Result: len(12) data(14 81 21 43 65 87 09 21 43 65 87 19 )
Result: len(12) data(14 a1 21 43 65 87 09 21 43 65 87 19 )
Result: len(2) data(00 91 )
Result: len(9) data(0e d0 4f 78 d9 2d 9c 0e 01 )
Result: len(12) data(14 d0 4f 78 d9 2d 9c 0e c3 e2 31 19 )

Testing default validity time
Expected: 1970-01-03 00:00:00
Decoded:  1970-01-03 00:00:00

Testing relative validity time
Expected: 1970-01-01 00:30:00
Decoded:  1970-01-01 00:30:00
Expected: 1970-01-01 15:30:00
Decoded:  1970-01-01 15:30:00
Expected: 1970-01-15 00:00:00
Decoded:  1970-01-15 00:00:00
Expected: 1971-02-11 00:00:00
Decoded:  1971-02-11 00:00:00
Expected: 1970-01-01 00:31:40
Decoded:  1970-01-01 00:31:40
Expected: 1970-01-01 15:31:40
Decoded:  1970-01-01 15:31:40
Expected: 1970-01-15 00:01:40
Decoded:  1970-01-15 00:01:40
Expected: 1971-02-11 00:01:40
Decoded:  1971-02-11 00:01:40

Testing absolute validity time
Expected: 2013-05-15 12:24:36
Decoded:  2013-05-15 12:24:36
Expected: 1984-05-15 12:24:36
Decoded:  1984-05-15 12:24:36
Expected: 2013-05-15 08:24:36
Decoded:  2013-05-15 08:24:36
Expected: 2013-12-24 12:24:36
Decoded:  2013-12-24 12:24:36
Expected: 2013-05-15 16:24:36
Decoded:  2013-05-15 16:24:36
Expected: 2013-05-15 12:24:36
Decoded:  2013-05-15 12:24:36
Expected: 1984-05-15 12:24:36
Decoded:  1984-05-15 12:24:36
Expected: 2013-05-15 08:24:36
Decoded:  2013-05-15 08:24:36
Expected: 2013-12-24 12:24:36
Decoded:  2013-12-24 12:24:36
Expected: 2013-05-15 16:24:36
Decoded:  2013-05-15 16:24:36

Testing enhanced validity time
Expected: 1970-01-03 00:00:00
Decoded:  1970-01-03 00:00:00
Expected: 1970-01-01 00:30:00
Decoded:  1970-01-01 00:30:00
Expected: 1970-01-01 15:30:00
Decoded:  1970-01-01 15:30:00
Expected: 1970-01-15 00:00:00
Decoded:  1970-01-15 00:00:00
Expected: 1971-02-11 00:00:00
Decoded:  1971-02-11 00:00:00
Expected: 1970-01-01 00:30:00
Decoded:  1970-01-01 00:30:00
Expected: 1970-01-01 00:02:03
Decoded:  1970-01-01 00:02:03
Expected: 1970-01-01 02:15:23
Decoded:  1970-01-01 02:15:23
Expected: 1970-01-03 00:00:00
Decoded:  1970-01-03 00:00:00
Expected: 1970-01-03 00:16:40
Decoded:  1970-01-03 00:16:40
Expected: 1970-01-01 00:46:40
Decoded:  1970-01-01 00:46:40
Expected: 1970-01-01 15:46:40
Decoded:  1970-01-01 15:46:40
Expected: 1970-01-15 00:16:40
Decoded:  1970-01-15 00:16:40
Expected: 1971-02-11 00:16:40
Decoded:  1971-02-11 00:16:40
Expected: 1970-01-01 00:46:40
Decoded:  1970-01-01 00:46:40
Expected: 1970-01-01 00:18:43
Decoded:  1970-01-01 00:18:43
Expected: 1970-01-01 02:32:03
Decoded:  1970-01-01 02:32:03
Expected: 1970-01-03 00:16:40
Decoded:  1970-01-03 00:16:40
OK