From e1b134973468a2291abaad8fa6ec44290d515d43 Mon Sep 17 00:00:00 2001 From: dingo Date: Sun, 11 Oct 2026 05:43:43 -0400 Subject: [PATCH] Format cellular perception test assertion --- tests/cellular_intent_protocol_tests.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/cellular_intent_protocol_tests.cpp b/tests/cellular_intent_protocol_tests.cpp index e389084..a98d7e9 100644 --- a/tests/cellular_intent_protocol_tests.cpp +++ b/tests/cellular_intent_protocol_tests.cpp @@ -136,10 +136,8 @@ void v8_perception_is_bounded_and_canonical() { auto duplicate = perception; duplicate.patches[1] = duplicate.patches[0]; CHECK(encode_session(SessionMessage{duplicate}).empty()); - CHECK( - encode_session( - SessionMessage{CellularPerception{19, 0, {perception.patches[0]}, std::nullopt}}) - .empty()); + const CellularPerception invalid{19, 0, {perception.patches[0]}, std::nullopt}; + CHECK(encode_session(SessionMessage{invalid}).empty()); const CellularPerception cleared{19, 0, {}, std::nullopt}; const auto clear_bytes = encode_session(SessionMessage{cleared}); CHECK(std::get(*decode_session(clear_bytes)) == cleared);