-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added functionality to show user suggested grip types * Fixed bug where sound cutoff in sound picker on iOS 17 * Minor info text changes * Changed version number
- Loading branch information
Showing
8 changed files
with
158 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// FormUtilitiesTests.swift | ||
// CountDownTests | ||
// | ||
// Created by Ian Docherty on 1/7/24. | ||
// | ||
|
||
import XCTest | ||
@testable import CountDown | ||
|
||
final class FormUtilitiesTests: XCTestCase { | ||
|
||
func testSuggestedGripTypesAreCorrect() throws { | ||
let suggested = getSuggestedGripTypes(newGripTypeName: "cRi") | ||
XCTAssertEqual(suggested, ["Full Crimp", "Half Crimp", "Open Hand Crimp"]) | ||
} | ||
|
||
func testSuggestedGripTypesIsEmpty() { | ||
let suggested = getSuggestedGripTypes(newGripTypeName: "CRIMPX") | ||
XCTAssertEqual(suggested, []) | ||
} | ||
|
||
func testSuggesteGripTypesWorksWithSpaces() { | ||
let suggested = getSuggestedGripTypes(newGripTypeName: " crim") | ||
XCTAssertEqual(suggested, ["Full Crimp", "Half Crimp", "Open Hand Crimp"]) | ||
} | ||
} |