mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
15 lines
228 B
Go
15 lines
228 B
Go
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")
|
|
}
|