mirror of https://github.com/dsoprea/go-exif.git
utility: Added tests.
parent
c408aa04d0
commit
a9c16ec9ef
|
@ -0,0 +1,21 @@
|
|||
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")
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue