fix(vm): the tests were broken, but not code

This commit is contained in:
vsariola 2021-03-04 14:37:57 +02:00
parent cc80fe7317
commit 185173c821

View File

@ -11,6 +11,7 @@ import (
func TestPatternReusing(t *testing.T) { func TestPatternReusing(t *testing.T) {
song := sointu.Song{ song := sointu.Song{
Score: sointu.Score{ Score: sointu.Score{
Length: 2,
RowsPerPattern: 8, RowsPerPattern: 8,
Tracks: []sointu.Track{{ Tracks: []sointu.Track{{
Patterns: [][]byte{{64, 1, 1, 1, 0, 0, 0, 0}, {72, 0, 0, 0, 0, 0, 0, 0}}, Patterns: [][]byte{{64, 1, 1, 1, 0, 0, 0, 0}, {72, 0, 0, 0, 0, 0, 0, 0}},
@ -38,6 +39,7 @@ func TestPatternReusing(t *testing.T) {
func TestUnnecessaryHolds(t *testing.T) { func TestUnnecessaryHolds(t *testing.T) {
song := sointu.Song{ song := sointu.Song{
Score: sointu.Score{ Score: sointu.Score{
Length: 2,
RowsPerPattern: 8, RowsPerPattern: 8,
Tracks: []sointu.Track{{ Tracks: []sointu.Track{{
Patterns: [][]byte{{64, 1, 1, 1, 0, 1, 0, 0}, {72, 0, 1, 0, 1, 0, 0, 0}}, Patterns: [][]byte{{64, 1, 1, 1, 0, 1, 0, 0}, {72, 0, 1, 0, 1, 0, 0, 0}},