Skip to content

Commit

Permalink
Progress on #83: Dminor and Fmajor tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ognjen Sobajic committed Aug 21, 2019
1 parent 2725533 commit 4b2628b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MusicCore.Tests/ChomskyAnalysisTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public void Albinoni_Adagio(string filename)
}

[DataRow(@"Bach_invention_1_Cmajor.mid")]
//[DataRow(@"Bach_invention_4_Dminor.mid")]
//[DataRow(@"Bach_invention_8_Fmajor.mid")]
[DataRow(@"Bach_invention_4_Dminor.mid")]
[DataRow(@"Bach_invention_8_Fmajor.mid")]
[DataRow(@"Bach_invention_10_Gmajor.mid")]
[DataRow(@"Bach_invention_13_Aminor.mid")]
//[DataRow(@"Bach_invention_14_Bbmajor.mid")]
Expand Down
2 changes: 1 addition & 1 deletion MusicCore/IMelodyPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Fraction duration
}
}

public bool IsIdentical(MelodyPartList node) => this.children.SequenceEqual(node.children);
public bool IsIdentical(MelodyPartList node) => this.children.SequenceEqual(node.children) && this.IsDiatonic == node.IsDiatonic;

public bool IsLeaf => !GetChildren().Any();

Expand Down

0 comments on commit 4b2628b

Please sign in to comment.