Skip to content

Commit

Permalink
Add a potential packet to the test cases
Browse files Browse the repository at this point in the history
Better highlight SMR test message type in packet string
  • Loading branch information
Resaec committed Jan 1, 2024
1 parent f7f7342 commit 4d87fd2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions src/test/scala/game/OutfitMembershipRequestTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class OutfitMembershipRequestTest extends Specification {
val create_2222 = hex"8c 0 1000 000 1000 84 3200320032003200"
val form_abc = hex"8c 2 0200 000 1000 83 610062006300"
val form_1 = hex"8c 2 1000 000 1000 81 3100"
val unk3 = hex"8c 5 bb39 9e0 2000 0000 1080 750072006f006200" // -- "urob" -- could be false positive -- seems to gets an OMSResp -> 0x8d271bb399e025af8f405080550072006f0062008080
val accept_1 = hex"8c 6 0200 000 1000"
val accept_2 = hex"8c 6 0400 000 1000"
val reject_1 = hex"8c 8 0200 000 1000"
Expand Down
34 changes: 17 additions & 17 deletions src/test/scala/game/SquadMembershipResponseTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ import org.specs2.mutable._
import scodec.bits._

class SquadMembershipResponseTest extends Specification {
val string_01 = hex"6f0 00854518050db2260108048006f006600440000"
val string_02 = hex"6f0 0049e8220112aa1e01100530050004f0049004c0045005200530080"
val string_11 = hex"6f1 995364f2040000000100080"
val string_12 = hex"6f1 90cadcf4040000000100080"
val string_21 = hex"6f2 010db2260085451805140560069007200750073004700690076006500720080"
val string_22 = hex"6f2 010db22601da03aa03140560069007200750073004700690076006500720080"
val string_31 = hex"6f3 07631db202854518050a048004d0046004900430000"
val string_32 = hex"6f3 04c34fb402854518050e0440041004e00310031003100310000"
val string_41 = hex"6f4 04cadcf405bbbef405140530041007200610069007300560061006e00750000"
val string_42 = hex"6f4 05c9c0f405d71aec0516041006900720049006e006a006500630074006f00720000"
val string_51 = hex"6f5 0249e8220049e822010e0430043005200490044004500520080"
val string_71 = hex"6f7 1049e822000000000100080"
val string_72 = hex"6f7 00cadcf4041355ae03100570069007a006b00690064003400350080"
val string_81 = hex"6f8 001355ae02cadcf405100570069007a006b00690064003400350000"
val string_91 = hex"6f9 008310080115aef40500080"
val string_92 = hex"6f9 001355ae02cadcf405100570069007a006b00690064003400350000"
val string_b1 = hex"6fb 021355ae02cadcf405140530041007200610069007300560061006e00750000"
val string_01 = hex"6f 0 00854518050db2260108048006f006600440000"
val string_02 = hex"6f 0 0049e8220112aa1e01100530050004f0049004c0045005200530080"
val string_11 = hex"6f 1 995364f2040000000100080"
val string_12 = hex"6f 1 90cadcf4040000000100080"
val string_21 = hex"6f 2 010db2260085451805140560069007200750073004700690076006500720080"
val string_22 = hex"6f 2 010db22601da03aa03140560069007200750073004700690076006500720080"
val string_31 = hex"6f 3 07631db202854518050a048004d0046004900430000"
val string_32 = hex"6f 3 04c34fb402854518050e0440041004e00310031003100310000"
val string_41 = hex"6f 4 04cadcf405bbbef405140530041007200610069007300560061006e00750000"
val string_42 = hex"6f 4 05c9c0f405d71aec0516041006900720049006e006a006500630074006f00720000"
val string_51 = hex"6f 5 0249e8220049e822010e0430043005200490044004500520080"
val string_71 = hex"6f 7 1049e822000000000100080"
val string_72 = hex"6f 7 00cadcf4041355ae03100570069007a006b00690064003400350080"
val string_81 = hex"6f 8 001355ae02cadcf405100570069007a006b00690064003400350000"
val string_91 = hex"6f 9 008310080115aef40500080"
val string_92 = hex"6f 9 001355ae02cadcf405100570069007a006b00690064003400350000"
val string_b1 = hex"6f b 021355ae02cadcf405140530041007200610069007300560061006e00750000"

"SquadMembershipResponse" should {
"decode (0-1)" in {
Expand Down

0 comments on commit 4d87fd2

Please sign in to comment.