OSDN Git Service

fix StrLiteral and BytesLiteral to support constant (#11)
[bytom/equity.git] / compiler / compile_test.go
index a55dc02..3e0b791 100644 (file)
@@ -86,6 +86,11 @@ func TestCompile(t *testing.T) {
                        equitytest.TestIfNesting,
                        "7b644400000054795279879169765579a00087643500000052795479a000876429000000765379a06952795579879169633a000000765479a06953797b8791635c0000007654798791695279a000876459000000527978a0697d8791",
                },
+               {
+                       "TestConstantMath",
+                       equitytest.TestConstantMath,
+                       "547a547a935a93880431323330aa8806737472696e67aa87",
+               },
        }
        for _, c := range cases {
                t.Run(c.name, func(t *testing.T) {