28 lines
831 B
Python
28 lines
831 B
Python
test_str = ''' This compromise on short codes of 5 length sadly also turns us zip codes,
|
|
but if someone wants to dial 02145, I suppose we can let them
|
|
On Sep 27, 2013 11:21 AM, "Rick Waldron" notifications@github.com wrote:
|
|
this what i do jjj -> jjj
|
|
> In apps/sms/test/unit/link_helper_test.js:
|
|
>
|
|
> > ```
|
|
> > });
|
|
> >
|
|
> > suite('Failures', function() {
|
|
> > ```
|
|
> > - ['0.34', '1200', '5000', '0.122', '0921'].forEach(function(phone) {
|
|
> > - test(phone, function() {
|
|
> > - testPhoneNOK(phone);
|
|
> > - });
|
|
> > - [
|
|
> > - '0.34',
|
|
> > - '1200',
|
|
> > - '5000',
|
|
>
|
|
> This will prevent short codes from working Belgium, Chile, Denmark,'''
|
|
results = [[12,3],
|
|
[1,2,3,4],
|
|
[1,2,3,4,5,6,7],
|
|
[1],
|
|
[1,2,3]]
|
|
results = sorted(results,key=lambda x:len(x),reverse=True)
|
|
print results |