Skip to content

Commit

Permalink
fix test failures due to 04a4c82
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasey Klipsch committed Feb 23, 2017
1 parent 04a4c82 commit 20f31f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,8 @@ func TestCodecEncoderEnum(t *testing.T) {
schema := `{"type":"enum","name":"cards","symbols":["HEARTS","DIAMONDS","SPADES","CLUBS"]}`
checkCodecEncoderResult(t, schema, Enum{"cards", "SPADES"}, []byte("\x04"))
checkCodecEncoderError(t, schema, Enum{"cards", "PINEAPPLE"}, "symbol not defined")
checkCodecEncoderError(t, schema, []byte("\x01"), "expected: Enum; received: []uint8")
checkCodecEncoderError(t, schema, "some symbol not in schema", "expected: Enum; received: string")
checkCodecEncoderError(t, schema, []byte("\x01"), "expected: Enum or string; received: []uint8")
checkCodecEncoderError(t, schema, "some symbol not in schema", "symbol not defined")
}

func TestCodecFixedChecksSchema(t *testing.T) {
Expand Down

0 comments on commit 20f31f6

Please sign in to comment.