summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/image/colornames/colornames_test.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-04-16 05:37:14 -0700
committerJoram Wilander <jwawilander@gmail.com>2018-04-16 08:37:14 -0400
commit6e2cb00008cbf09e556b00f87603797fcaa47e09 (patch)
tree3c0eb55ff4226a3f024aad373140d1fb860a6404 /vendor/golang.org/x/image/colornames/colornames_test.go
parentbf24f51c4e1cc6286885460672f7f449e8c6f5ef (diff)
downloadchat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.gz
chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.bz2
chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.zip
Depenancy upgrades and movign to dep. (#8630)
Diffstat (limited to 'vendor/golang.org/x/image/colornames/colornames_test.go')
-rw-r--r--vendor/golang.org/x/image/colornames/colornames_test.go42
1 files changed, 0 insertions, 42 deletions
diff --git a/vendor/golang.org/x/image/colornames/colornames_test.go b/vendor/golang.org/x/image/colornames/colornames_test.go
deleted file mode 100644
index 5251bb816..000000000
--- a/vendor/golang.org/x/image/colornames/colornames_test.go
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2015 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.
-
-package colornames
-
-import (
- "image/color"
- "testing"
-)
-
-func TestColornames(t *testing.T) {
- if len(Map) != len(Names) {
- t.Fatalf("Map and Names have different length: %d vs %d", len(Map), len(Names))
- }
-
- for name, want := range testCases {
- got, ok := Map[name]
- if !ok {
- t.Errorf("Did not find %s", name)
- continue
- }
- if got != want {
- t.Errorf("%s:\ngot %v\nwant %v", name, got, want)
- }
- }
-}
-
-var testCases = map[string]color.RGBA{
- "aliceblue": color.RGBA{240, 248, 255, 255},
- "crimson": color.RGBA{220, 20, 60, 255},
- "darkorange": color.RGBA{255, 140, 0, 255},
- "deepskyblue": color.RGBA{0, 191, 255, 255},
- "greenyellow": color.RGBA{173, 255, 47, 255},
- "lightgrey": color.RGBA{211, 211, 211, 255},
- "lightpink": color.RGBA{255, 182, 193, 255},
- "mediumseagreen": color.RGBA{60, 179, 113, 255},
- "olivedrab": color.RGBA{107, 142, 35, 255},
- "purple": color.RGBA{128, 0, 128, 255},
- "slategrey": color.RGBA{112, 128, 144, 255},
- "yellowgreen": color.RGBA{154, 205, 50, 255},
-}