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
+1 -1
View File
@@ -34,4 +34,4 @@ ENV MTG_IP=0.0.0.0 \
EXPOSE 3128 3129
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=0 /go/src/github.com/9seconds/mtg /usr/local/bin/mtg
COPY --from=0 /go/src/github.com/9seconds/mtg/mtg /usr/local/bin/mtg
+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()