markov-music
markov-music copied to clipboard
Write comprehensive unit tests for markov_chain.py
Baseline use cases to test:
- Encoding to JSON
- Reading from JSON
- Encoding to file
- Reading from file
- Asserting the state after inserting a test pattern with no repeats
- Asserting the state after inserting a test pattern with repeats