rename the KeyPhase to KeyPhaseBit

This commit is contained in:
Marten Seemann
2019-06-29 15:32:11 +07:00
parent 7ba70cc8c2
commit 5a9c593463
10 changed files with 50 additions and 43 deletions

View File

@@ -15,16 +15,4 @@ var _ = Describe("Protocol", func() {
Expect(PacketType(10).String()).To(Equal("unknown packet type: 10"))
})
})
Context("Key Phases", func() {
It("has the correct string representation", func() {
Expect(KeyPhaseZero.String()).To(Equal("0"))
Expect(KeyPhaseOne.String()).To(Equal("1"))
})
It("returns the next key phase", func() {
Expect(KeyPhaseZero.Next()).To(Equal(KeyPhaseOne))
Expect(KeyPhaseOne.Next()).To(Equal(KeyPhaseZero))
})
})
})