blob: 777451a8f8f598cee9c2cd135f7b0c8e17798658 (
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
|
----- 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'
----- 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'
|