work on packet and tests; I think this is all we can do with this packet, actually

This commit is contained in:
FateJH 2017-01-25 23:19:46 -05:00
parent a31ad6ffd3
commit a1b8589f1a
3 changed files with 39 additions and 1 deletions

View file

@ -622,6 +622,26 @@ class GamePacketTest extends Specification {
}
}
"CharacterNoRecordMessage" should {
val string = hex"13 00400000" //we have no record of this packet, so here's something fake that works
"deocde" in {
PacketCoding.DecodePacket(string).require match {
case CharacterNoRecordMessage(unk) =>
unk mustEqual 16384
case default =>
ko
}
}
"encode" in {
val msg = CharacterNoRecordMessage(16384)
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
pkt mustEqual string
}
}
"ChangeFireModeMessage" should {
val string = hex"46 4C0020"