Skip to content

This is my approach of solving the Gett challenge in Swift

Notifications You must be signed in to change notification settings

asafbaibekov/GettSwiftChallenge2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gett Swift Challenge 2020

This is my approach of solving the challenge of @freak4pc

My Solution is at GettSwift.swift

The Challenge

Link to the video explaining the challenge (Hebrew)

Roles:

You may:

  • Add any code to the BEGINNING of the test bodies (but not to the middle or end of them).
  • Add any code outside of the test bodies.

You must not:

  • Remove any code from the tests.
  • Add a fake XCTAssert, an early-return, or other means to "short circuit" the test execution.
import XCTest

final class GettSwiftTests: XCTestCase {

    func testGettChallenge1() {
        // Do not edit below this line
        XCTAssertEqual(👋(3)["a"]{ "tteg a ixat !" }, "Gett A Taxi ! aaa")
    }

    func testGettChallenge2() {
        // Do not edit below this line
        XCTAssertEqual(👋(🔜)["🚕"]{ "tteg a ixat !" }, "Gett A Taxi ! 🚕")
    }

    func testGettChallenge3() {
        // Do not edit below this line
        XCTAssertEqual(👋(🔜)[🌈]{ "tteg a ixat !" }, "Gett A Taxi ! 🌈🌈🌈🌈🌈")
    }

    func testGettChallenge4() {
        // Do not edit below this line
        XCTAssertEqual(👋(🔜)[📱]{ "tteg a ixat !" }, "Gett A Taxi ! 📱📱")
    }

    func testGettChallenge5() {
        // Do not edit below this line
        XCTAssertEqual(👋(🔜)["hey"]{ "tteg a ixat !" }, "Gett A Taxi ! heyhey")
    }

    func testGettChallenge6() {
        // Do not edit below this line
        XCTAssertEqual(👋(🔜)[pow(2, 3)]{ "tteg a ixat !" }, "Gett A Taxi ! 88")
    }

    func testGettChallenge7() {
        // Do not edit below this line
        XCTAssertEqual(👋(🔜)[6 ^ 3 ^ 2]{ "tteg a ixat !" }, "Gett A Taxi !")
    }

    func testGettChallenge8() {
        // Do not edit below this line
        let randomString = UUID().uuidString
        XCTAssertEqual(👋(🔜)[randomString]{ "tteg a ixat !" }, "Gett A Taxi ! \(randomString)\(randomString)\(randomString)")
    }

    // Do not modify these 2 lines
    override func setUp() {}
    override func tearDown() {}
}

About

This is my approach of solving the Gett challenge in Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages