OSDN Git Service

fix unit test for sm op (#1156)
authorPaladz <yzhu101@uottawa.ca>
Mon, 23 Jul 2018 01:55:18 +0000 (09:55 +0800)
committerGitHub <noreply@github.com>
Mon, 23 Jul 2018 01:55:18 +0000 (09:55 +0800)
protocol/vm/crypto_test.go

index 3477872..6b18acd 100644 (file)
@@ -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