plugeth/ethutil/parsing_test.go

32 lines
308 B
Go
Raw Normal View History

2014-02-14 22:56:09 +00:00
package ethutil
import (
"fmt"
2014-02-14 22:56:09 +00:00
"testing"
)
func TestPreProcess(t *testing.T) {
main, init := PreProcess(`
init {
// init
if a > b {
if {
}
}
2014-02-14 22:56:09 +00:00
}
main {
// main
if a > b {
if c > d {
}
}
2014-02-14 22:56:09 +00:00
}
`)
2014-02-14 22:56:09 +00:00
fmt.Println("main")
fmt.Println(main)
fmt.Println("init")
fmt.Println(init)
2014-02-14 22:56:09 +00:00
}