test(capture): decoders cover the matchmaking chat packets; position fields are under update

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-30 06:41:52 -05:00
parent 4d7bea6f06
commit 3018312f29
3 changed files with 35 additions and 2 deletions

View File

@@ -337,7 +337,7 @@ TEST(PacketDecoderTests, NamesEveryService) {
EXPECT_EQ(decoded.service, "WORLD");
EXPECT_EQ(decoded.name, "POSITION_UPDATE");
ASSERT_TRUE(decoded.fields);
EXPECT_FLOAT_EQ((*decoded.fields)["position"][1].get<float>(), 2.0f);
EXPECT_FLOAT_EQ((*decoded.fields)["update"]["position"][1].get<float>(), 2.0f);
const auto where = PacketDecoder::Position(bytes);
ASSERT_TRUE(where);
EXPECT_FLOAT_EQ(where->z, 3.0f);