OSDN Git Service
(root)
/
bytom
/
bytom-spv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dffa4c6
)
fix unit test for ispushdata (#1132)
author
oysheng
<33340252+oysheng@users.noreply.github.com>
Thu, 12 Jul 2018 06:35:13 +0000
(14:35 +0800)
committer
Paladz
<yzhu101@uottawa.ca>
Thu, 12 Jul 2018 06:35:13 +0000
(14:35 +0800)
protocol/vm/ops_test.go
patch
|
blob
|
history
diff --git
a/protocol/vm/ops_test.go
b/protocol/vm/ops_test.go
index
bac92bc
..
da09cf8
100644
(file)
--- a/
protocol/vm/ops_test.go
+++ b/
protocol/vm/ops_test.go
@@
-2,6
+2,7
@@
package vm
import (
"fmt"
+ "reflect"
"testing"
"github.com/bytom/errors"
@@
-172,7
+173,7
@@
func TestIsPushData(t *testing.T) {
} else if c.wantErr != nil {
t.Logf("check err success")
} else {
- t.Errorf("check false: %v -- %v",
ops[OP_1].fn, ops[c.want.Op].fn
)
+ t.Errorf("check false: %v -- %v",
reflect.ValueOf(ops[OP_1].fn), reflect.ValueOf(ops[c.want.Op].fn)
)
}
}
}