From cb68b8acecaee9989eca3df1e2e8282c85f6b4af Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 23 Jun 2022 10:45:44 +0100 Subject: [PATCH] bus unit tests added --- tests/higher_test.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/higher_test.go b/tests/higher_test.go index ec5843d..92a26f5 100644 --- a/tests/higher_test.go +++ b/tests/higher_test.go @@ -49,3 +49,27 @@ func TestStrip5Gain(t *testing.T) { t.Error("TestStrip5Gain did not match -20.8") } } + +func TestStrip3Mc(t *testing.T) { + //t.Skip("skipping test") + vmRem.Strip[3].SetMc(true) + if vmRem.Strip[3].GetMc() != true { + t.Error("TestStrip3Mc did not match true") + } +} + +func TestBus3Eq(t *testing.T) { + //t.Skip("skipping test") + vmRem.Bus[0].SetEq(true) + if vmRem.Bus[0].GetEq() != true { + t.Error("TestBus3Eq did not match true") + } +} + +func TestBus4Label(t *testing.T) { + //t.Skip("skipping test") + vmRem.Bus[4].SetLabel("test0") + if vmRem.Bus[4].GetLabel() != "test0" { + t.Error("TestBus4Label did not match test0") + } +}