Skip to content

Commit 4e35970

Browse files
committed
fix test names
1 parent 2a9b925 commit 4e35970

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

tests/higher_test.go

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func TestStrip4Label(t *testing.T) {
5959
})
6060
}
6161

62-
func TestStrip5Gain(t *testing.T) {
62+
func TestStrip4Gain(t *testing.T) {
6363
//t.Skip("skipping test")
6464
vm.Strip[4].SetGain(-20.8)
6565
t.Run("Should return -20.8 when Strip[4].SetGain(-20.8)", func(t *testing.T) {
@@ -72,15 +72,15 @@ func TestStrip5Gain(t *testing.T) {
7272
})
7373
}
7474

75-
func TestStrip3CompKnob(t *testing.T) {
75+
func TestStrip4CompKnob(t *testing.T) {
7676
//t.Skip("skipping test")
7777
vm.Strip[4].Comp().SetKnob(8.1)
78-
t.Run("Should return 8.1 when Strip[4].SetComp(8.1)", func(t *testing.T) {
78+
t.Run("Should return 8.1 when Strip[4].Comp().SetKnob(8.1)", func(t *testing.T) {
7979
assert.Equal(t, vm.Strip[4].Comp().Knob(), 8.1)
8080
})
8181

8282
vm.Strip[4].Comp().SetKnob(1.6)
83-
t.Run("Should return 1.6 when Strip[4].SetComp(1.6)", func(t *testing.T) {
83+
t.Run("Should return 1.6 when Strip[4].Comp().SetKnob(1.6)", func(t *testing.T) {
8484
assert.Equal(t, vm.Strip[4].Comp().Knob(), 1.6)
8585
})
8686
}
@@ -100,30 +100,43 @@ func TestStrip0CompGainIn(t *testing.T) {
100100

101101
func TestStrip3GateKnob(t *testing.T) {
102102
//t.Skip("skipping test")
103-
vm.Strip[4].Gate().SetKnob(8.1)
104-
t.Run("Should return 8.1 when Strip[4].SetComp(8.1)", func(t *testing.T) {
105-
assert.Equal(t, vm.Strip[4].Gate().Knob(), 8.1)
103+
vm.Strip[3].Gate().SetKnob(8.1)
104+
t.Run("Should return 8.1 when Strip[3].Gate().SetKnob(8.1)", func(t *testing.T) {
105+
assert.Equal(t, vm.Strip[3].Gate().Knob(), 8.1)
106106
})
107107

108-
vm.Strip[4].Gate().SetKnob(1.6)
109-
t.Run("Should return 1.6 when Strip[4].SetComp(1.6)", func(t *testing.T) {
110-
assert.Equal(t, vm.Strip[4].Gate().Knob(), 1.6)
108+
vm.Strip[3].Gate().SetKnob(1.6)
109+
t.Run("Should return 1.6 when Strip[3].Gate().SetKnob(1.6)", func(t *testing.T) {
110+
assert.Equal(t, vm.Strip[3].Gate().Knob(), 1.6)
111111
})
112112
}
113113

114-
func TestStrip0GateAttack(t *testing.T) {
114+
func TestStrip0CompAttack(t *testing.T) {
115115
//t.Skip("skipping test")
116116
vm.Strip[0].Comp().SetAttack(3.4)
117117
t.Run("Should return 3.4 when Strip[0].Comp().SetAttack(3.4)", func(t *testing.T) {
118118
assert.Equal(t, vm.Strip[0].Comp().Attack(), 3.4)
119119
})
120120

121121
vm.Strip[0].Comp().SetAttack(190.3)
122-
t.Run("Should return -19.3 when Strip[0].Comp().SetAttack(-19.3)", func(t *testing.T) {
122+
t.Run("Should return 190.3 when Strip[0].Comp().SetAttack(190.3)", func(t *testing.T) {
123123
assert.Equal(t, vm.Strip[0].Comp().Attack(), 190.3)
124124
})
125125
}
126126

127+
func TestStrip4Denoiser(t *testing.T) {
128+
//t.Skip("skipping test")
129+
vm.Strip[4].Denoiser().SetKnob(2.1)
130+
t.Run("Should return 2.1 when Strip[4].Denoiser().SetKnob(2.1)", func(t *testing.T) {
131+
assert.Equal(t, vm.Strip[4].Denoiser().Knob(), 2.1)
132+
})
133+
134+
vm.Strip[4].Denoiser().SetKnob(5.6)
135+
t.Run("Should return 5.6 when Strip[4].Denoiser().SetKnob(5.6)", func(t *testing.T) {
136+
assert.Equal(t, vm.Strip[4].Denoiser().Knob(), 5.6)
137+
})
138+
}
139+
127140
func TestStrip5Mc(t *testing.T) {
128141
//t.Skip("skipping test")
129142
vm.Strip[5].SetMc(true)

0 commit comments

Comments
 (0)