summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/cloudfoundry/jibber_jabber/jibber_jabber_windows_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/cloudfoundry/jibber_jabber/jibber_jabber_windows_test.go')
-rw-r--r--vendor/github.com/cloudfoundry/jibber_jabber/jibber_jabber_windows_test.go51
1 files changed, 0 insertions, 51 deletions
diff --git a/vendor/github.com/cloudfoundry/jibber_jabber/jibber_jabber_windows_test.go b/vendor/github.com/cloudfoundry/jibber_jabber/jibber_jabber_windows_test.go
deleted file mode 100644
index f325d981e..000000000
--- a/vendor/github.com/cloudfoundry/jibber_jabber/jibber_jabber_windows_test.go
+++ /dev/null
@@ -1,51 +0,0 @@
-// +build windows
-
-package jibber_jabber_test
-
-import (
- "regexp"
-
- . "github.com/cloudfoundry/jibber_jabber"
-
- . "github.com/onsi/ginkgo"
- . "github.com/onsi/gomega"
-)
-
-const (
- LOCALE_REGEXP = "^[a-z]{2}-[A-Z]{2}$"
- LANGUAGE_REGEXP = "^[a-z]{2}$"
- TERRITORY_REGEXP = "^[A-Z]{2}$"
-)
-
-var _ = Describe("Windows", func() {
- BeforeEach(func() {
- locale, err := DetectIETF()
- Ω(err).Should(BeNil())
- Ω(locale).ShouldNot(BeNil())
- Ω(locale).ShouldNot(Equal(""))
- })
-
- Describe("#DetectIETF", func() {
- It("detects correct IETF locale", func() {
- locale, _ := DetectIETF()
- matched, _ := regexp.MatchString(LOCALE_REGEXP, locale)
- Ω(matched).Should(BeTrue())
- })
- })
-
- Describe("#DetectLanguage", func() {
- It("detects correct Language", func() {
- language, _ := DetectLanguage()
- matched, _ := regexp.MatchString(LANGUAGE_REGEXP, language)
- Ω(matched).Should(BeTrue())
- })
- })
-
- Describe("#DetectTerritory", func() {
- It("detects correct Territory", func() {
- territory, _ := DetectTerritory()
- matched, _ := regexp.MatchString(TERRITORY_REGEXP, territory)
- Ω(matched).Should(BeTrue())
- })
- })
-})