Skip to content

Commit

Permalink
add CRC16Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneli committed Aug 26, 2020
1 parent 5600b00 commit e6ea07e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/scala/redis/util/CRC16Spec.scala
@@ -0,0 +1,15 @@
package redis.util

import org.specs2.mutable.Specification

class CRC16Spec extends Specification {

"CRC16" should {
"crc16" in {
CRC16.crc16("aaaaa") mustEqual 29740
CRC16.crc16("someValue") mustEqual 17816
CRC16.crc16("someValue1234567890") mustEqual 42744
CRC16.crc16("foo bar baz") mustEqual 44067
}
}
}

0 comments on commit e6ea07e

Please sign in to comment.