Test panic for converting invalid sha strings.

ok @davecgh
This commit is contained in:
Josh Rickmar 2014-06-13 09:46:31 -05:00
parent 4bbcede9e0
commit 6d79aa5ff1

14
internal_test.go Normal file
View file

@ -0,0 +1,14 @@
package btcnet
import (
"testing"
)
func TestInvalidShaStr(t *testing.T) {
defer func() {
if r := recover(); r == nil {
t.Errorf("Expected panic for invalid sha string, got nil")
}
}()
newShaHashFromStr("banana")
}