some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / cmd / stringer / testdata / unum2.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/cmd/stringer/testdata/unum2.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/cmd/stringer/testdata/unum2.go
deleted file mode 100644 (file)
index edbbedf..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2014 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Unsigned integers - check maximum size
-
-package main
-
-import "fmt"
-
-type Unum2 uint8
-
-const (
-       Zero Unum2 = iota
-       One
-       Two
-)
-
-func main() {
-       ck(Zero, "Zero")
-       ck(One, "One")
-       ck(Two, "Two")
-       ck(3, "Unum2(3)")
-       ck(255, "Unum2(255)")
-}
-
-func ck(unum Unum2, str string) {
-       if fmt.Sprint(unum) != str {
-               panic("unum.go: " + str)
-       }
-}