mirror of https://github.com/dsoprea/go-exif.git
22 lines
407 B
Go
22 lines
407 B
Go
package exif
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestDumpBytesToString(t *testing.T) {
|
|
s := DumpBytesToString([]byte { 0x12, 0x34, 0x56 })
|
|
|
|
if s != "12 34 56" {
|
|
t.Fatalf("result not expected")
|
|
}
|
|
}
|
|
|
|
func TestDumpBytesClauseToString(t *testing.T) {
|
|
s := DumpBytesClauseToString([]byte { 0x12, 0x34, 0x56 })
|
|
|
|
if s != "0x12, 0x34, 0x56" {
|
|
t.Fatalf("result not expected")
|
|
}
|
|
}
|