Fix tests

This commit is contained in:
9seconds
2018-05-31 10:13:36 +03:00
parent 058f18ab83
commit 5240f024c5
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -34,7 +34,7 @@ func TestFrameMagic(t *testing.T) {
}
func TestFrameDC(t *testing.T) {
assert.Equal(t, int16(771), makeFrame().DC())
assert.Equal(t, int16(770), makeFrame().DC())
}
func TestFrameValid(t *testing.T) {
@@ -45,6 +45,11 @@ func TestFrameValid(t *testing.T) {
assert.False(t, frame.Valid())
}
func TestFrameDoubleInvert(t *testing.T) {
frame := makeFrame()
assert.Equal(t, frame, frame.Invert().Invert())
}
func TestFrameInvert(t *testing.T) {
frame := makeFrame()
reversed := frame.Invert()