summaryrefslogtreecommitdiffstats
path: root/tests/gsm23003/gsm23003_test.ok
blob: 2f7c37febac7c6b068b94cba96ded4132faa7b8f (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
----- 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_valid_imei
 0: expect=true result=true imei='12345678901234' with_15th_digit=false
 1: expect=false result=false imei='1234567890123' with_15th_digit=false
 2: expect=false result=false imei='123456789012345' with_15th_digit=false
 3: expect=true result=true imei='357613004448485' with_15th_digit=true
 4: expect=true result=true imei='357805023984447' with_15th_digit=true
 5: expect=true result=true imei='352936001349777' with_15th_digit=true
 6: expect=true result=true imei='357663017768551' with_15th_digit=true
 7: expect=false result=false imei='357613004448480' with_15th_digit=true
 8: expect=false result=false imei='357613004448405' with_15th_digit=true
 9: expect=false result=false imei='357613004448085' with_15th_digit=true
10: expect=false result=false imei='(null)' with_15th_digit=false
----- 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
901-70-a123-b1
901-70 -> epc.mnc070.mcc901.3gppnetwork.org
901-70-a123-b1 -> mmecb1.mmegia123.mme.epc.mnc070.mcc901.3gppnetwork.org
epc.mnc070.mcc901.3gppnetwork.org -> 901-70
mmec01.mmegiA001.mme.epc.mnc070.mcc901.3gppnetwork.org -> 901-70-a001-01