initial commit
[govpp.git] / vendor / github.com / onsi / gomega / gstruct / ignore_test.go
1 package gstruct_test
2
3 import (
4         . "github.com/onsi/ginkgo"
5         . "github.com/onsi/gomega"
6         . "github.com/onsi/gomega/gstruct"
7 )
8
9 var _ = Describe("Ignore", func() {
10         It("should always succeed", func() {
11                 Ω(nil).Should(Ignore())
12                 Ω(struct{}{}).Should(Ignore())
13                 Ω(0).Should(Ignore())
14                 Ω(false).Should(Ignore())
15         })
16
17         It("should always fail", func() {
18                 Ω(nil).ShouldNot(Reject())
19                 Ω(struct{}{}).ShouldNot(Reject())
20                 Ω(1).ShouldNot(Reject())
21                 Ω(true).ShouldNot(Reject())
22         })
23 })