send_mode_test.go 491 B

1234567891011121314151617
  1. package ackhandler
  2. import (
  3. . "github.com/onsi/ginkgo"
  4. . "github.com/onsi/gomega"
  5. )
  6. var _ = Describe("Send Mode", func() {
  7. It("has a string representation", func() {
  8. Expect(SendNone.String()).To(Equal("none"))
  9. Expect(SendAny.String()).To(Equal("any"))
  10. Expect(SendAck.String()).To(Equal("ack"))
  11. Expect(SendPTO.String()).To(Equal("pto"))
  12. Expect(SendRetransmission.String()).To(Equal("retransmission"))
  13. Expect(SendMode(123).String()).To(Equal("invalid send mode: 123"))
  14. })
  15. })