aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/asm_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-27 23:15:44 +0800
committerobscuren <geffobscura@gmail.com>2014-04-27 23:16:53 +0800
commit338b6980915c990c6e6287a7249ddd98e6be20eb (patch)
treed5c33a03c473dab1de0daade37a2d12986084faa /ethutil/asm_test.go
parent16e52327a4baa5547c38965fce53b3ff40b98173 (diff)
downloadgo-tangerine-338b6980915c990c6e6287a7249ddd98e6be20eb.tar
go-tangerine-338b6980915c990c6e6287a7249ddd98e6be20eb.tar.gz
go-tangerine-338b6980915c990c6e6287a7249ddd98e6be20eb.tar.bz2
go-tangerine-338b6980915c990c6e6287a7249ddd98e6be20eb.tar.lz
go-tangerine-338b6980915c990c6e6287a7249ddd98e6be20eb.tar.xz
go-tangerine-338b6980915c990c6e6287a7249ddd98e6be20eb.tar.zst
go-tangerine-338b6980915c990c6e6287a7249ddd98e6be20eb.zip
Refactoring and added documentation comments
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)
+}