@cryptotaxi247 / kubo / commits / 1d3e72a33

gofmt

Juan Batiz-Benet committed Jul 5, 2014 at 15:02 UTC 1d3e72a33b62cbf6b6f55e416ee9301f4e54fbf4
1 file changed +17 -17
util/util_test.go
+17 -17
@@ -1,28 +1,28 @@
1 package util
2
3 import (
4 - "bytes"
5 - "fmt"
6 - mh "github.com/jbenet/go-multihash"
7 - "testing"
4 + "bytes"
5 + "fmt"
6 + mh "github.com/jbenet/go-multihash"
7 + "testing"
8 )
9
10 func TestKey(t *testing.T) {
11
12 - h1, err := mh.Sum([]byte("beep boop"), mh.SHA2_256, -1)
13 - if err != nil {
14 - t.Error(err)
15 - }
12 + h1, err := mh.Sum([]byte("beep boop"), mh.SHA2_256, -1)
13 + if err != nil {
14 + t.Error(err)
15 + }
16
17 - k1 := Key(h1)
18 - h2 := mh.Multihash(k1)
19 - k2 := Key(h2)
17 + k1 := Key(h1)
18 + h2 := mh.Multihash(k1)
19 + k2 := Key(h2)
20
21 - if !bytes.Equal(h1, h2) {
22 - t.Error("Multihashes not equal.")
23 - }
21 + if !bytes.Equal(h1, h2) {
22 + t.Error("Multihashes not equal.")
23 + }
24
25 - if k1 != k2 {
26 - t.Error("Keys not equal.")
27 - }
25 + if k1 != k2 {
26 + t.Error("Keys not equal.")
27 + }
28 }