You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
230 B
15 lines
230 B
9 years ago
|
package chaincfg
|
||
|
|
||
|
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")
|
||
|
}
|