mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-04 04:30:21 +00:00
work on packet and tests; I think this is all we can do with this packet, actually
This commit is contained in:
parent
a31ad6ffd3
commit
a1b8589f1a
3 changed files with 39 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue