1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Simple test: enumeration of type int starting at 0.
25 ck(Tuesday, "Tuesday")
26 ck(Wednesday, "Wednesday")
27 ck(Thursday, "Thursday")
29 ck(Saturday, "Saturday")
35 func ck(day Day, str string) {
36 if fmt.Sprint(day) != str {
37 panic("day.go: " + str)