{"id":16686339,"url":"https://github.com/stdevteam/ios-brainstorm","last_synced_at":"2026-04-13T07:09:22.339Z","repository":{"id":151144938,"uuid":"182988074","full_name":"stdevteam/iOS-Brainstorm","owner":"stdevteam","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-05T10:40:45.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T10:47:58.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stdevteam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-23T10:06:59.000Z","updated_at":"2022-04-05T10:40:48.000Z","dependencies_parsed_at":"2024-02-13T03:17:19.791Z","dependency_job_id":null,"html_url":"https://github.com/stdevteam/iOS-Brainstorm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevteam%2FiOS-Brainstorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevteam%2FiOS-Brainstorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevteam%2FiOS-Brainstorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevteam%2FiOS-Brainstorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdevteam","download_url":"https://codeload.github.com/stdevteam/iOS-Brainstorm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428436,"owners_count":20289317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T15:05:29.154Z","updated_at":"2025-12-30T10:23:20.647Z","avatar_url":"https://github.com/stdevteam.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iOS-Brainstorm  ![Swift 5.x](https://img.shields.io/badge/Swift-5.x-red.svg) ![iOS 10.0+](https://img.shields.io/badge/iOS-10.0+-blue.svg)\n\n\n#### Dear applicant, to apply for the position of iOS developer, follow the few steps described below.\n##### Good luck and looking forward to meeting You!\n\n  - Fork this repo\n  - Write your solution in brainstorm.playgroung file\n  - Add your CV in repo\n  - Commit, Push\n  - Send your forked repo url to hr@stdevmail.com\n\n## Requirements\nYou must add your code in the following method and return the count of provided weekdays in the provided month of the year.\n```swift\nfunc number(of weekday: Weekday, in month: String) throws -\u003e Int {\n    // Write youre code here...\n}\n```\nHere is ```Weekday```, you can use it or create your own.\n```swift\nenum Weekday {\n    case sunday\n    case monday\n    case tuesday\n    case wednesday\n    case thursday\n    case friday\n    case saturday\n}\n```\nAnd also we have ```ResultError``` for catching errors. You have to use this one.\n```swift\nenum ResultError: Error {\n    case notValidDate\n    case customError(String)\n}\n```\n\n## Testing\nWe have Testing class with 7 test cases, you can use it or add your own test.\n```swift\nfunc test1() {\n    XCTAssertEqual(try number(of: .monday, in: \"02-2020\"), 4)\n}\nfunc test2() {\n    XCTAssertEqual(try number(of: .tuesday, in: \"03-1951\"), 4)\n}\nfunc test3() {\n    XCTAssertEqual(try number(of: .wednesday, in: \"10-1975\"), 5)\n}\nfunc test4() {\n    XCTAssertEqual(try number(of: .thursday, in: \"02-1993\"), 4)\n}\nfunc test5() {\n    XCTAssertEqual(try number(of: .friday, in: \"05-2139\"), 5)\n}\nfunc test6() {\n    XCTAssertEqual(try number(of: .saturday, in: \"12\"), 5)\n}\nfunc test7() {\n    XCTAssertEqual(try number(of: .sunday, in: \"06\"), 4)\n}\n```\n## Support\n\nFeel free to [open issuses](https://github.com/stdevteam/iOS-Brainstorm/issues/new) with any suggestions, bug reports, feature requests, questions.\n\n### License\n\nThe MIT License (MIT)\n\nCopyright (c) 2019 STDev LLC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdevteam%2Fios-brainstorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstdevteam%2Fios-brainstorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdevteam%2Fios-brainstorm/lists"}