Contains the following commits: -711f33450c-b6b1e55d1e- Reverted because Travis is already at a more recent version -bd4e64d1d4Also, the merge commit contains the necessary decred-specific alterations, converts all other references to sha to hash to keep with the spirit of the merged commits, and various other cleanup intended to bring the code bases more in line with one another.
19 lines
385 B
Go
19 lines
385 B
Go
// Copyright (c) 2015-2016 The Decred developers
|
|
// Use of this source code is governed by an ISC
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package chaincfg
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/decred/dcrd/chaincfg/chainhash"
|
|
)
|
|
|
|
func TestInvalidHashStr(t *testing.T) {
|
|
_, err := chainhash.NewHashFromStr("banana")
|
|
if err == nil {
|
|
t.Error("Invalid string should fail.")
|
|
}
|
|
}
|