Skip to content

Commit 9b793a2

Browse files
committed
Fixed tests
1 parent f3779c5 commit 9b793a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/TonicTests/ChordTests.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ class ChordTests: XCTestCase {
4444
let notes: [Int8] = [60, 64, 66, 71]
4545
let pitchSet = PitchSet(pitches: notes.map { Pitch($0) } )
4646
let chord = Chord.getRankedChords(from: pitchSet)
47-
XCTAssertEqual(chord.map { $0.slashDescription }, ["Cmaj7♭5"])
47+
XCTAssertEqual(chord.map { $0.slashDescription }, ["Cmaj7(♭5)"])
4848
}
4949

5050
func testMajorNinthFlatFive() {
5151
let notes: [Int8] = [60, 64, 66, 71, 74]
5252
let pitchSet = PitchSet(pitches: notes.map { Pitch($0) } )
5353
let chord = Chord.getRankedChords(from: pitchSet)
54-
XCTAssertEqual(chord.map { $0.slashDescription }, ["Cmaj9♭5"])
54+
XCTAssertEqual(chord.map { $0.slashDescription }, ["Cmaj9(♭5)"])
5555
}
5656

5757
func testMajorNinthSharpFive() {
5858
let notes: [Int8] = [60, 64, 68, 71, 74]
5959
let pitchSet = PitchSet(pitches: notes.map { Pitch($0) } )
6060
let chord = Chord.getRankedChords(from: pitchSet)
61-
XCTAssertEqual(chord.map { $0.slashDescription }, ["Cmaj9♯5"])
61+
XCTAssertEqual(chord.map { $0.slashDescription }, ["Cmaj9(♯5)"])
6262
}
6363

6464
func testDominantNinthFlatFive() {
@@ -149,8 +149,8 @@ class ChordTests: XCTestCase {
149149
let pitchSet = PitchSet(pitches: notes.map { Pitch($0) } )
150150
let chord = Chord.getRankedChords(from: pitchSet)
151151
let chord2 = Chord(.C, type: .majorSeventhFlatFive)
152-
XCTAssertEqual(chord2.slashDescription, "Cmaj7♭5")
153-
XCTAssertEqual(chord.map { $0.slashDescription }, ["Cmaj7♭5"])
152+
XCTAssertEqual(chord2.slashDescription, "Cmaj7(♭5)")
153+
XCTAssertEqual(chord.map { $0.slashDescription }, ["Cmaj7(♭5)"])
154154
}
155155

156156
func testAugmentedDiminishededChordsPreferNoInversions() {

0 commit comments

Comments
 (0)