aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/parsing_test.go
blob: a9ad347dd26889e240fc1ccc73639b2093992fa5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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)
}