Skip to content

Commit

Permalink
Updated string "binary"
Browse files Browse the repository at this point in the history
  • Loading branch information
icellan committed Nov 4, 2022
1 parent 0bba5cd commit d81ab0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// TestNewFromTape tests for nil case in NewFromTape()
func TestNewFromTape(t *testing.T) {
expectedTx := "10afc796d06fec11a4b6077012a1522355c82e5de316f4dd5c42ddccd6d61cdb"
expectedEncoding := "binary"
expectedEncoding := string(EncodingBinary)

tx, err := bob.NewFromString(exampleBobTx)
if err != nil {
Expand Down Expand Up @@ -42,7 +42,7 @@ func TestNewFromTape(t *testing.T) {
func TestNewFromTapes(t *testing.T) {

expectedTx := "10afc796d06fec11a4b6077012a1522355c82e5de316f4dd5c42ddccd6d61cdb"
expectedEncoding := "binary"
expectedEncoding := string(EncodingBinary)

tx, err := bob.NewFromString(exampleBobTx)
if err != nil {
Expand Down Expand Up @@ -110,7 +110,7 @@ func TestNewFromTape2(t *testing.T) {
if err != nil {
t.Fatalf("error occurred: %s", err.Error())
}
if b.Encoding != "binary" {
if b.Encoding != string(EncodingBinary) {
t.Fatalf("expected Encoding: binary got: %s", b.Encoding)
}
if b.MediaType != "image/png" {
Expand Down

0 comments on commit d81ab0e

Please sign in to comment.