aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/asm_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethutil/asm_test.go')
-rw-r--r--ethutil/asm_test.go31
1 files changed, 31 insertions, 0 deletions
diff --git a/ethutil/asm_test.go b/ethutil/asm_test.go
new file mode 100644
index 000000000..a9ad347dd
--- /dev/null
+++ b/ethutil/asm_test.go
@@ -0,0 +1,31 @@
+package ethutil
+
+import (
+ "fmt"
+ "testing"
+)
+
+func TestPreProcess(t *testing.T) {
+ main, init := PreProcess(`
+ init {
+ // init
+ if a > b {
+ if {
+ }
+ }
+ }
+
+ main {
+ // main
+ if a > b {
+ if c > d {
+ }
+ }
+ }
+ `)
+
+ fmt.Println("main")
+ fmt.Println(main)
+ fmt.Println("init")
+ fmt.Println(init)
+}