OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e404354
)
fix unit test for sm op (#1156)
author
Paladz
<yzhu101@uottawa.ca>
Mon, 23 Jul 2018 01:55:18 +0000
(09:55 +0800)
committer
GitHub
<noreply@github.com>
Mon, 23 Jul 2018 01:55:18 +0000
(09:55 +0800)
protocol/vm/crypto_test.go
patch
|
blob
|
history
diff --git
a/protocol/vm/crypto_test.go
b/protocol/vm/crypto_test.go
index
3477872
..
6b18acd
100644
(file)
--- a/
protocol/vm/crypto_test.go
+++ b/
protocol/vm/crypto_test.go
@@
-85,6
+85,9
@@
func TestCheckSig(t *testing.T) {
}
func TestCryptoOps(t *testing.T) {
+ OP_SM3 := Op(0xb0)
+ ops[OP_SM3] = opInfo{OP_SM3, "SM3", opSm3}
+
type testStruct struct {
op Op
startVM *virtualMachine