Sha256: 0c64361a32d9f6f749b39fd1fca79afbb9c836cf9399686ca9bea0b1d4f47772

Contents?: true

Size: 631 Bytes

Versions: 213

Compression:

Stored size: 631 Bytes

Contents

unittest {
const int allTestsEnabled = 0;

    assert(convert(1) == "1");
static if (allTestsEnabled) {
    assert(convert(3) == "Pling");
    assert(convert(5) == "Plang");
    assert(convert(7) == "Plong");
    assert(convert(6) == "Pling");
    assert(convert(9) == "Pling");
    assert(convert(10) == "Plang");
    assert(convert(14) == "Plong");
    assert(convert(15) == "PlingPlang");
    assert(convert(21) == "PlingPlong");
    assert(convert(25) == "Plang");
    assert(convert(35) == "PlangPlong");
    assert(convert(49) == "Plong");
    assert(convert(52) == "52");
    assert(convert(105) == "PlingPlangPlong");
}

}

Version data entries

213 entries across 213 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.179 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.178 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.177 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.176 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.175 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.174 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.173 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.172 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.171 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.170 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.169 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.167 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.166 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.165 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.164 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.163 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.162 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.161 tracks/d/exercises/raindrops/source/raindrops.d
trackler-2.2.1.160 tracks/d/exercises/raindrops/source/raindrops.d