Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aure committed Apr 22, 2024
1 parent f3779c5 commit 9b793a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/TonicTests/ChordTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ class ChordTests: XCTestCase {
let notes: [Int8] = [60, 64, 66, 71]
let pitchSet = PitchSet(pitches: notes.map { Pitch($0) } )
let chord = Chord.getRankedChords(from: pitchSet)
XCTAssertEqual(chord.map { $0.slashDescription }, ["Cmaj7♭5"])
XCTAssertEqual(chord.map { $0.slashDescription }, ["Cmaj7(♭5)"])
}

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

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

func testDominantNinthFlatFive() {
Expand Down Expand Up @@ -149,8 +149,8 @@ class ChordTests: XCTestCase {
let pitchSet = PitchSet(pitches: notes.map { Pitch($0) } )
let chord = Chord.getRankedChords(from: pitchSet)
let chord2 = Chord(.C, type: .majorSeventhFlatFive)
XCTAssertEqual(chord2.slashDescription, "Cmaj7♭5")
XCTAssertEqual(chord.map { $0.slashDescription }, ["Cmaj7♭5"])
XCTAssertEqual(chord2.slashDescription, "Cmaj7(♭5)")
XCTAssertEqual(chord.map { $0.slashDescription }, ["Cmaj7(♭5)"])
}

func testAugmentedDiminishededChordsPreferNoInversions() {
Expand Down

0 comments on commit 9b793a2

Please sign in to comment.