Sha256: 879f3f02bd1c345f0ebfe3dd55a4fd701618f8a29f3499c007c9fc8c66f9838c

Contents?: true

Size: 1.19 KB

Versions: 214

Compression:

Stored size: 1.19 KB

Contents

[
    {
        "sub"       : "number",
        "param"     : "(123) 456-7890",
        "expected"  : "1234567890",
        "name"      : "cleans number"
    },
    {
        "sub"       : "number",
        "param"     : "123.456.7890",
        "expected"  : "1234567890",
        "name"      : "cleans the dots"
    },
    {
        "sub"       : "number",
        "param"     : "11234567890",
        "expected"  : "1234567890",
        "name"      : "11-digit number and first digit is 1"
    },
    {
        "sub"       : "number",
        "param"     : "21234567890",
        "expected"  : "0000000000",
        "name"      : "11-digit number and first digit is NOT 1"
    },
    {
        "sub"       : "area_code",
        "param"     : "1234567890",
        "expected"  : "123",
        "name"      : "first 3 digits returned as area_code"
    },
    {
        "sub"       : "pretty",
        "param"     : "1234567890",
        "expected"  : "(123) 456-7890",
        "name"      : "pretty print a 10-digit number"
    },
    {
        "sub"       : "pretty",
        "param"     : "11234567890",
        "expected"  : "(123) 456-7890",
        "name"      : "pretty print a valid 11-digit number"
    }
]

Version data entries

214 entries across 214 versions & 1 rubygems

Version Path
trackler-2.2.0.3 tracks/perl5/exercises/phone-number/cases.json
trackler-2.2.0.2 tracks/perl5/exercises/phone-number/cases.json
trackler-2.2.0.1 tracks/perl5/exercises/phone-number/cases.json
trackler-2.2.0.0 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.55 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.54 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.53 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.52 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.51 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.50 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.49 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.48 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.47 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.46 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.45 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.44 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.43 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.42 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.41 tracks/perl5/exercises/phone-number/cases.json
trackler-2.1.0.40 tracks/perl5/exercises/phone-number/cases.json