From 185173c8214faaf24d7b51c2b00486062aab67f1 Mon Sep 17 00:00:00 2001 From: vsariola <5684185+vsariola@users.noreply.github.com> Date: Thu, 4 Mar 2021 14:37:57 +0200 Subject: [PATCH] fix(vm): the tests were broken, but not code --- vm/patterns_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vm/patterns_test.go b/vm/patterns_test.go index 6b1c321..931a06f 100644 --- a/vm/patterns_test.go +++ b/vm/patterns_test.go @@ -11,6 +11,7 @@ import ( func TestPatternReusing(t *testing.T) { song := sointu.Song{ Score: sointu.Score{ + Length: 2, RowsPerPattern: 8, Tracks: []sointu.Track{{ 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) { song := sointu.Song{ Score: sointu.Score{ + Length: 2, RowsPerPattern: 8, Tracks: []sointu.Track{{ Patterns: [][]byte{{64, 1, 1, 1, 0, 1, 0, 0}, {72, 0, 1, 0, 1, 0, 0, 0}},