encoding and decoding of byte-aligned Lists now working

This commit is contained in:
FateJH 2016-09-22 00:35:13 -04:00
parent 6be873c4f6
commit d40f64c053
2 changed files with 75 additions and 8 deletions

View file

@ -975,9 +975,9 @@ class GamePacketTest extends Specification {
}
"encode (two)" in {
val msg = HotSpotUpdateMessage(PlanetSideGUID(5),1, HotSpotInfo(0,2000,0,2700,128)::HotSpotInfo(0,2750,0,1100,128)::Nil)
val msg = HotSpotUpdateMessage(PlanetSideGUID(5),5, HotSpotInfo(0,2000,0,2700,128)::HotSpotInfo(0,2750,0,1100,128)::Nil)
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
pkt mustEqual stringOne
pkt mustEqual stringTwo
}
}