Official Go implementation of the Ethereum protocol
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-ethereum/ethutil/parsing_test.go

32 lines
308 B

11 years ago
package ethutil
import (
"fmt"
11 years ago
"testing"
)
func TestPreProcess(t *testing.T) {
main, init := PreProcess(`
init {
// init
if a > b {
if {
}
}
11 years ago
}
main {
// main
if a > b {
if c > d {
}
}
11 years ago
}
`)
11 years ago
fmt.Println("main")
fmt.Println(main)
fmt.Println("init")
fmt.Println(init)
11 years ago
}