CookieComputing / muscala-archived

Music Theory for Scala
MIT License
0 stars 0 forks source link

Add ScalaCheck/property based testing into library #26

Closed CookieComputing closed 4 years ago

CookieComputing commented 4 years ago

One of the most common trends in this library is to check for specific properties in the code (e.g. does this major triad had a major third, followed by a minor third? Is the distance between them also reflect those intervals?). While the example based tests do provide a reasonable amount of reassurance, another nice quality to have would be extensive fuzzing testing through ScalaCheck or a similar property based testing library.

CookieComputing commented 4 years ago

A great introduction can be found here.