/trunk/Examples/test-suite/go/enums_runme.go

# · Go · 25 lines · 19 code · 6 blank · 0 comment · 8 complexity · ffbfe6703a50aeccd57efe15a46d2e22 MD5 · raw file

  1. package main
  2. import "./enums"
  3. func main() {
  4. enums.Bar2(1)
  5. enums.Bar3(1)
  6. enums.Bar1(1)
  7. if enums.GetEnumInstance() != 2 {
  8. panic(0)
  9. }
  10. if enums.GetSlap() != 10 {
  11. panic(0)
  12. }
  13. if enums.GetMine() != 11 {
  14. panic(0)
  15. }
  16. if enums.GetThigh() != 12 {
  17. panic(0)
  18. }
  19. }