summaryrefslogtreecommitdiffstats
path: root/tests/gsm23003/gsm23003_test.ok
blob: b435f4502b360657554e140fe2d20037936008bd (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
----- test_valid_imsi
 0: expect=false result=false imsi=''
 1: expect=false result=false imsi=' '
 2: expect=false result=false imsi='1'
 3: expect=false result=false imsi='123'
 4: expect=false result=false imsi='12345'
 5: expect=true result=true imsi='123456'
 6: expect=true result=true imsi='1234567'
 7: expect=true result=true imsi='1234567890123'
 8: expect=true result=true imsi='123456789012345'
 9: expect=true result=true imsi='000000000000000'
10: expect=true result=true imsi='999999999999999'
11: expect=false result=false imsi='1234567890123456'
12: expect=false result=false imsi='a23456789012345'
13: expect=false result=false imsi='1234567b9012345'
14: expect=false result=false imsi='12345678901234c'
15: expect=false result=false imsi='123456789 01234'
16: expect=false result=false imsi='1234567
123456'
17: expect=false result=false imsi='123456	123456'
18: expect=false result=false imsi='123456
123456'
19: expect=false result=false imsi='(null)'
----- test_valid_msisdn
 0: expect=false result=false msisdn=''
 1: expect=false result=false msisdn=' '
 2: expect=true result=true msisdn='1'
 3: expect=true result=true msisdn='123'
 4: expect=true result=true msisdn='12345'
 5: expect=true result=true msisdn='123456'
 6: expect=true result=true msisdn='1234567'
 7: expect=true result=true msisdn='1234567890123'
 8: expect=true result=true msisdn='123456789012345'
 9: expect=true result=true msisdn='000000000000000'
10: expect=true result=true msisdn='999999999999999'
11: expect=false result=false msisdn='1234567890123456'
12: expect=false result=false msisdn='a23456789012345'
13: expect=false result=false msisdn='1234567b9012345'
14: expect=false result=false msisdn='12345678901234c'
15: expect=false result=false msisdn='123456789 01234'
16: expect=false result=false msisdn='1234567
123456'
17: expect=false result=false msisdn='123456	123456'
18: expect=false result=false msisdn='123456
123456'
19: expect=false result=false msisdn='(null)'
----- test_mnc_from_str
 0: "0" rc=0 mnc=0 mnc_3_digits=0 pass
 1: "00" rc=0 mnc=0 mnc_3_digits=0 pass
 2: "000" rc=0 mnc=0 mnc_3_digits=1 pass
 3: "1" rc=0 mnc=1 mnc_3_digits=0 pass
 4: "01" rc=0 mnc=1 mnc_3_digits=0 pass
 5: "001" rc=0 mnc=1 mnc_3_digits=1 pass
 6: "" rc=-22 mnc=0 mnc_3_digits=0 pass
 7: " " rc=-22 mnc=0 mnc_3_digits=0 pass
 8: "-1" rc=-22 mnc=0 mnc_3_digits=0 pass
 9: "1000" rc=-22 mnc=0 mnc_3_digits=0 pass
10: "0x" rc=-22 mnc=0 mnc_3_digits=0 pass
11: " 23" rc=-22 mnc=0 mnc_3_digits=0 pass
12: "23 " rc=-22 mnc=0 mnc_3_digits=0 pass
13: " 023" rc=-22 mnc=0 mnc_3_digits=0 pass
14: "023 " rc=-22 mnc=0 mnc_3_digits=0 pass
15: "023 " rc=-22 mnc=0 mnc_3_digits=0 pass