/trunk/Examples/test-suite/go/enums_runme.go
Go | 25 lines | 19 code | 6 blank | 0 comment | 8 complexity | ffbfe6703a50aeccd57efe15a46d2e22 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- package main
- import "./enums"
- func main() {
- enums.Bar2(1)
- enums.Bar3(1)
- enums.Bar1(1)
- if enums.GetEnumInstance() != 2 {
- panic(0)
- }
- if enums.GetSlap() != 10 {
- panic(0)
- }
- if enums.GetMine() != 11 {
- panic(0)
- }
- if enums.GetThigh() != 12 {
- panic(0)
- }
- }