Sha256: 7ba775cbe91dfcad9474baeab507d4fd1ee33271e50b27033d0d049b3e66a6d1

Contents?: true

Size: 1.96 KB

Versions: 325

Compression:

Stored size: 1.96 KB

Contents

import XCTest
@testable import Raindrops

class RaindropsTests: XCTestCase {
    func test1() {
        XCTAssertEqual("1", Raindrops(1).sounds)
    }

    func test3() {
        XCTAssertEqual("Pling", Raindrops(3).sounds)
    }

    func test5() {
        XCTAssertEqual("Plang", Raindrops(5).sounds)
    }

    func test7() {
        XCTAssertEqual("Plong", Raindrops(7).sounds)
    }

    func test6() {
        XCTAssertEqual("Pling", Raindrops(6).sounds)
    }

    func test9() {
        XCTAssertEqual("Pling", Raindrops(9).sounds)
    }

    func test10() {
        XCTAssertEqual("Plang", Raindrops(10).sounds)
    }

    func test14() {
        XCTAssertEqual("Plong", Raindrops(14).sounds)
    }

    func test15() {
        XCTAssertEqual("PlingPlang", Raindrops(15).sounds)
    }

    func test21() {
        XCTAssertEqual("PlingPlong", Raindrops(21).sounds)
    }

    func test25() {
        XCTAssertEqual("Plang", Raindrops(25).sounds)
    }

    func test35() {
        XCTAssertEqual("PlangPlong", Raindrops(35).sounds)
    }

    func test49() {
        XCTAssertEqual("Plong", Raindrops(49).sounds)
    }

    func test52() {
        XCTAssertEqual("52", Raindrops(52).sounds)
    }

    func test105() {
        XCTAssertEqual("PlingPlangPlong", Raindrops(105).sounds)
    }

    func test12121() {
        XCTAssertEqual("12121", Raindrops(12_121).sounds)
    }

    static var allTests: [(String, (RaindropsTests) -> () throws -> Void)] {
        return [
            ("test1", test1),
            ("test3", test3),
            ("test5", test5),
            ("test7", test7),
            ("test6", test6),
            ("test9", test9),
            ("test10", test10),
            ("test14", test14),
            ("test15", test15),
            ("test21", test21),
            ("test25", test25),
            ("test35", test35),
            ("test49", test49),
            ("test52", test52),
            ("test105", test105),
            ("test12121", test12121),
        ]
    }
}

Version data entries

325 entries across 325 versions & 1 rubygems

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