From 7763d84891891289dc9236bbb6c2f8e102b80e96 Mon Sep 17 00:00:00 2001 From: adrian-kong Date: Fri, 27 Jan 2023 11:09:55 +1100 Subject: [PATCH 1/2] rust clippy --- .../resources/rust/test/sbp_tests_template.rs | 6 +- rust/sbp/examples/serial.rs | 2 +- rust/sbp/src/sbp_string.rs | 8 +- ...ck_sbp_acquisition_msg_acq_result_dep_a.rs | 54 ++++------ ...ck_sbp_acquisition_msg_acq_result_dep_b.rs | 45 +++----- ...ck_sbp_acquisition_msg_acq_result_dep_c.rs | 45 +++----- ..._bootload_msg_bootloader_handshake_resp.rs | 18 ++-- ...auto_check_sbp_ext_events_msg_ext_event.rs | 9 +- ...check_sbp_file_io_msg_fileio_write_resp.rs | 9 +- .../auto_check_sbp_imu_msg_imu_aux.rs | 9 +- .../auto_check_sbp_imu_msg_imu_raw.rs | 9 +- ...uto_check_sbp_integrity_msg_acknowledge.rs | 9 +- ...k_sbp_integrity_msg_ssr_flag_high_level.rs | 9 +- ...ty_msg_ssr_flag_iono_grid_point_sat_los.rs | 9 +- ...integrity_msg_ssr_flag_iono_grid_points.rs | 9 +- ...ntegrity_msg_ssr_flag_iono_tile_sat_los.rs | 9 +- ...k_sbp_integrity_msg_ssr_flag_satellites.rs | 9 +- ...ntegrity_msg_ssr_flag_tropo_grid_points.rs | 9 +- .../auto_check_sbp_logging_msg_fwd.rs | 9 +- .../auto_check_sbp_logging_msg_log.rs | 9 +- .../auto_check_sbp_logging_msg_print_dep.rs | 54 ++++------ ...heck_sbp_navigation_msg_age_corrections.rs | 9 +- ..._check_sbp_navigation_msg_baseline_ecef.rs | 45 +++----- ..._sbp_navigation_msg_baseline_ecef_dep_a.rs | 99 ++++++------------ ...o_check_sbp_navigation_msg_baseline_ned.rs | 45 +++----- ...k_sbp_navigation_msg_baseline_ned_dep_a.rs | 99 ++++++------------ .../auto_check_sbp_navigation_msg_dops.rs | 9 +- ...uto_check_sbp_navigation_msg_dops_dep_a.rs | 81 +++++--------- .../auto_check_sbp_navigation_msg_gps_time.rs | 45 +++----- ...check_sbp_navigation_msg_gps_time_dep_a.rs | 99 ++++++------------ ..._check_sbp_navigation_msg_gps_time_gnss.rs | 45 +++----- .../auto_check_sbp_navigation_msg_pos_ecef.rs | 36 +++---- ...o_check_sbp_navigation_msg_pos_ecef_cov.rs | 9 +- ...ck_sbp_navigation_msg_pos_ecef_cov_gnss.rs | 9 +- ...check_sbp_navigation_msg_pos_ecef_dep_a.rs | 99 ++++++------------ ...o_check_sbp_navigation_msg_pos_ecefgnss.rs | 9 +- .../auto_check_sbp_navigation_msg_pos_llh.rs | 45 +++----- ...to_check_sbp_navigation_msg_pos_llh_cov.rs | 9 +- ...eck_sbp_navigation_msg_pos_llh_cov_gnss.rs | 9 +- ..._check_sbp_navigation_msg_pos_llh_dep_a.rs | 99 ++++++------------ ...o_check_sbp_navigation_msg_pos_llh_gnss.rs | 9 +- ..._check_sbp_navigation_msg_pose_relative.rs | 9 +- ...eck_sbp_navigation_msg_protection_level.rs | 9 +- ...bp_navigation_msg_reference_frame_param.rs | Bin 19850 -> 19784 bytes ...heck_sbp_navigation_msg_utc_leap_second.rs | 9 +- .../auto_check_sbp_navigation_msg_utc_time.rs | 9 +- ..._check_sbp_navigation_msg_utc_time_gnss.rs | 9 +- .../auto_check_sbp_navigation_msg_vel_body.rs | 9 +- .../auto_check_sbp_navigation_msg_vel_cog.rs | 27 ++--- .../auto_check_sbp_navigation_msg_vel_ecef.rs | 45 +++----- ...o_check_sbp_navigation_msg_vel_ecef_cov.rs | 9 +- ...ck_sbp_navigation_msg_vel_ecef_cov_gnss.rs | 9 +- ...check_sbp_navigation_msg_vel_ecef_dep_a.rs | 99 ++++++------------ ..._check_sbp_navigation_msg_vel_ecef_gnss.rs | 9 +- .../auto_check_sbp_navigation_msg_vel_ned.rs | 45 +++----- ...eck_sbp_navigation_msg_vel_ned_cov_gnss.rs | 9 +- ..._check_sbp_navigation_msg_vel_ned_dep_a.rs | 99 ++++++------------ ...o_check_sbp_navigation_msg_vel_ned_gnss.rs | 9 +- ...uto_check_sbp_navigation_msg_vel_nedcov.rs | 9 +- ...check_sbp_observation_msg_base_pos_ecef.rs | 9 +- ...check_sbp_observation_msg_ephemeris_bds.rs | 9 +- ...eck_sbp_observation_msg_ephemeris_dep_b.rs | 54 ++++------ ...check_sbp_observation_msg_ephemeris_gal.rs | 9 +- ...check_sbp_observation_msg_ephemeris_glo.rs | 9 +- ...check_sbp_observation_msg_ephemeris_gps.rs | 9 +- ...heck_sbp_observation_msg_ephemeris_qzss.rs | 9 +- ...to_check_sbp_observation_msg_glo_biases.rs | 9 +- .../auto_check_sbp_observation_msg_obs.rs | 18 ++-- ...uto_check_sbp_observation_msg_obs_dep_a.rs | 54 ++++------ ...uto_check_sbp_observation_msg_obs_dep_b.rs | 45 +++----- ...uto_check_sbp_observation_msg_obs_dep_c.rs | 45 +++----- .../auto_check_sbp_observation_msg_osr.rs | 9 +- ...auto_check_sbp_observation_msg_sv_az_el.rs | 9 +- ..._check_sbp_orientation_msg_angular_rate.rs | 9 +- ..._check_sbp_orientation_msg_orient_euler.rs | 9 +- ...o_check_sbp_orientation_msg_orient_quat.rs | 9 +- ...auto_check_sbp_piksi_msg_device_monitor.rs | 45 +++----- .../auto_check_sbp_piksi_msg_iar_state.rs | 63 ++++------- ...k_sbp_piksi_msg_network_bandwidth_usage.rs | Bin 26658 -> 26592 bytes .../auto_check_sbp_piksi_msg_thread_state.rs | Bin 74591 -> 73865 bytes .../auto_check_sbp_piksi_msg_uart_state.rs | 18 ++-- ...to_check_sbp_piksi_msg_uart_state_dep_a.rs | 54 ++++------ .../auto_check_sbp_sbas_msg_sbas_raw.rs | 9 +- ...ettings_msg_settings_read_by_index_done.rs | 9 +- ...ettings_msg_settings_read_by_index_resp.rs | Bin 34120 -> 33790 bytes ...eck_sbp_signing_msg_ed25519_certificate.rs | 9 +- ...check_sbp_signing_msg_ed25519_signature.rs | 9 +- ...k_sbp_signing_msg_ed25519_signature_dep.rs | 9 +- ...bp_ssr_msg_ssr_code_phase_biases_bounds.rs | 9 +- ...p_ssr_msg_ssr_gridded_correction_bounds.rs | 18 ++-- ...heck_sbp_ssr_msg_ssr_orbit_clock_bounds.rs | 9 +- ..._msg_ssr_orbit_clock_bounds_degradation.rs | 9 +- ...uto_check_sbp_ssr_msg_ssr_satellite_apc.rs | 9 +- ...o_check_sbp_ssr_msg_ssr_stec_correction.rs | 9 +- ...o_check_sbp_ssr_msg_ssr_tile_definition.rs | 9 +- ...k_sbp_ssr_msg_ssr_tile_definition_dep_b.rs | 9 +- .../auto_check_sbp_system_msg_dgnss_status.rs | 9 +- .../auto_check_sbp_system_msg_group_meta.rs | 18 ++-- .../auto_check_sbp_system_msg_heartbeat.rs | 18 ++-- .../auto_check_sbp_system_msg_ins_status.rs | 9 +- .../auto_check_sbp_system_msg_ins_updates.rs | 9 +- ...o_check_sbp_system_msg_sensor_aid_event.rs | 9 +- .../auto_check_sbp_system_msg_startup.rs | 18 ++-- ...uto_check_sbp_system_msg_status_journal.rs | 18 ++-- .../auto_check_sbp_telemetry_msg_tel_sv.rs | 9 +- ...heck_sbp_tracking_msg_measurement_state.rs | 9 +- ...o_check_sbp_tracking_msg_tracking_state.rs | 45 +++----- ...racking_msg_tracking_state_detailed_dep.rs | 45 +++----- ...ck_sbp_tracking_msgtracking_state_dep_a.rs | 54 ++++------ .../auto_check_sbp_vehicle_msg_odometry.rs | 9 +- rust/sbp2json/tests/common/mod.rs | 12 +-- 111 files changed, 872 insertions(+), 1730 deletions(-) diff --git a/generator/sbpg/targets/resources/rust/test/sbp_tests_template.rs b/generator/sbpg/targets/resources/rust/test/sbp_tests_template.rs index 9e0ba38c97..28e23b7dbd 100644 --- a/generator/sbpg/targets/resources/rust/test/sbp_tests_template.rs +++ b/generator/sbpg/targets/resources/rust/test/sbp_tests_template.rs @@ -52,7 +52,7 @@ fn test_(((s.suite_name|snake_case)))() sbp::messages::Sbp::(((t.msg.name|lower_acronyms)))(msg) => { assert_eq!( msg.message_type(), (((t.msg_type))), "Incorrect message type, expected (((t.msg_type))), is {}", msg.message_type()); let sender_id = msg.sender_id().unwrap(); - assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {}", sender_id); + assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {sender_id}"); ((*- for f in t.fieldskeys *))(((compare_value( (((f))), (((t.fields[f]))) ))))((*- endfor *)) }, _ => panic!("Invalid message type! Expected a (((t.msg.name)))"), @@ -98,7 +98,7 @@ fn test_json2sbp_(((s.suite_name|snake_case)))() sbp::messages::Sbp::(((t.msg.name|lower_acronyms)))(msg) => { assert_eq!( msg.message_type(), (((t.msg_type))), "Incorrect message type, expected (((t.msg_type))), is {}", msg.message_type()); let sender_id = msg.sender_id().unwrap(); - assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {}", sender_id); + assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {sender_id}"); ((*- for f in t.fieldskeys *))(((compare_value( (((f))), (((t.fields[f]))) ))))((*- endfor *)) }, _ => panic!("Invalid message type! Expected a (((t.msg.name)))"), @@ -141,7 +141,7 @@ fn test_sbp2json_(((s.suite_name|snake_case)))() sbp::messages::Sbp::(((t.msg.name|lower_acronyms)))(msg) => { assert_eq!( msg.message_type(), (((t.msg_type))), "Incorrect message type, expected (((t.msg_type))), is {}", msg.message_type()); let sender_id = msg.sender_id().unwrap(); - assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {}", sender_id); + assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {sender_id}"); ((*- for f in t.fieldskeys *))(((compare_value( (((f))), (((t.fields[f]))) ))))((*- endfor *)) }, _ => panic!("Invalid message type! Expected a (((t.msg.name)))"), diff --git a/rust/sbp/examples/serial.rs b/rust/sbp/examples/serial.rs index 7030715ec6..07da18c414 100644 --- a/rust/sbp/examples/serial.rs +++ b/rust/sbp/examples/serial.rs @@ -26,7 +26,7 @@ fn main() { Ok(Sbp::MsgLog(x)) => println!("{}", x.text), Ok(Sbp::MsgPosLlh(x)) => println!("{} {} {}", x.lat, x.lon, x.height), Err(e) => { - eprintln!("{:?}", e); + eprintln!("{e:?}"); break; } _ => {} diff --git a/rust/sbp/src/sbp_string.rs b/rust/sbp/src/sbp_string.rs index 75d5078fbd..b7baee92aa 100644 --- a/rust/sbp/src/sbp_string.rs +++ b/rust/sbp/src/sbp_string.rs @@ -226,7 +226,7 @@ impl<'de, E, const LEN: usize> serde::Deserialize<'de> for SbpString<[u8; LEN], Er: Error, { let data = v.as_bytes().try_into().map_err(|_| { - Error::custom(format!("was expecting a string of length {}", LEN)) + Error::custom(format!("was expecting a string of length {LEN}")) })?; Ok(SbpString::new(data)) } @@ -236,7 +236,7 @@ impl<'de, E, const LEN: usize> serde::Deserialize<'de> for SbpString<[u8; LEN], Er: Error, { let data = v.into_bytes().try_into().map_err(|_| { - Error::custom(format!("was expecting a string of length {}", LEN)) + Error::custom(format!("was expecting a string of length {LEN}")) })?; Ok(SbpString::new(data)) } @@ -246,7 +246,7 @@ impl<'de, E, const LEN: usize> serde::Deserialize<'de> for SbpString<[u8; LEN], Er: Error, { let data = v.try_into().map_err(|_| { - Error::custom(format!("was expecting a string of length {}", LEN)) + Error::custom(format!("was expecting a string of length {LEN}")) })?; Ok(SbpString::new(data)) } @@ -256,7 +256,7 @@ impl<'de, E, const LEN: usize> serde::Deserialize<'de> for SbpString<[u8; LEN], Er: Error, { let data = v.try_into().map_err(|_| { - Error::custom(format!("was expecting a string of length {}", LEN)) + Error::custom(format!("was expecting a string of length {LEN}")) })?; Ok(SbpString::new(data)) } diff --git a/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_a.rs index 65b20e78db..12222bd7ed 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_a.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(8.24194335937500000e+03), @@ -95,8 +94,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(7.49267639160156250e+02), @@ -147,8 +145,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-6.49365283203125000e+03), @@ -200,8 +197,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-9.99023498535156250e+02), @@ -252,8 +248,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(4.74536132812500000e+03), @@ -304,8 +299,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-4.99511749267578125e+02), @@ -377,8 +371,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(8.24194335937500000e+03), @@ -436,8 +429,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(7.49267639160156250e+02), @@ -495,8 +487,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-6.49365283203125000e+03), @@ -554,8 +545,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-9.99023498535156250e+02), @@ -613,8 +603,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(4.74536132812500000e+03), @@ -672,8 +661,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-4.99511749267578125e+02), @@ -752,8 +740,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(8.24194335937500000e+03), @@ -823,8 +810,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(7.49267639160156250e+02), @@ -894,8 +880,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-6.49365283203125000e+03), @@ -966,8 +951,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-9.99023498535156250e+02), @@ -1037,8 +1021,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(4.74536132812500000e+03), @@ -1108,8 +1091,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-4.99511749267578125e+02), diff --git a/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_b.rs b/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_b.rs index 7ea49d5ac8..bc2c9e3593 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_b.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_b.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(4.99511718750000000e+03), @@ -107,8 +106,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(-8.24194335937500000e+03), @@ -170,8 +168,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(4.74536132812500000e+03), @@ -233,8 +230,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(2.49755859375000000e+03), @@ -296,8 +292,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(-4.99511749267578125e+02), @@ -379,8 +374,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(4.99511718750000000e+03), @@ -448,8 +442,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(-8.24194335937500000e+03), @@ -517,8 +510,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(4.74536132812500000e+03), @@ -586,8 +578,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(2.49755859375000000e+03), @@ -655,8 +646,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(-4.99511749267578125e+02), @@ -746,8 +736,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(4.99511718750000000e+03), @@ -828,8 +817,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(-8.24194335937500000e+03), @@ -910,8 +898,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(4.74536132812500000e+03), @@ -992,8 +979,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(2.49755859375000000e+03), @@ -1074,8 +1060,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(-4.99511749267578125e+02), diff --git a/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_c.rs b/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_c.rs index b07c860ca4..30975bc627 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_c.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_c.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(1.76906591796875000e+03), @@ -107,8 +106,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(-5.05447387695312500e+02), @@ -170,8 +168,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(-1.26361840820312500e+03), @@ -233,8 +230,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(3.03268432617187500e+03), @@ -296,8 +292,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(2.52723681640625000e+03), @@ -379,8 +374,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(1.76906591796875000e+03), @@ -448,8 +442,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(-5.05447387695312500e+02), @@ -517,8 +510,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(-1.26361840820312500e+03), @@ -586,8 +578,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(3.03268432617187500e+03), @@ -655,8 +646,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(2.52723681640625000e+03), @@ -746,8 +736,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(1.76906591796875000e+03), @@ -828,8 +817,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(-5.05447387695312500e+02), @@ -910,8 +898,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(-1.26361840820312500e+03), @@ -992,8 +979,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(3.03268432617187500e+03), @@ -1074,8 +1060,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(2.52723681640625000e+03), diff --git a/rust/sbp/tests/integration/auto_check_sbp_bootload_msg_bootloader_handshake_resp.rs b/rust/sbp/tests/integration/auto_check_sbp_bootload_msg_bootloader_handshake_resp.rs index 18a680afea..b45b144133 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_bootload_msg_bootloader_handshake_resp.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_bootload_msg_bootloader_handshake_resp.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0, - "incorrect sender id, expected 0x0, is {}", - sender_id + "incorrect sender id, expected 0x0, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -87,8 +86,7 @@ fn test_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.handshake[0], 118, @@ -160,8 +158,7 @@ fn test_json2sbp_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0, - "incorrect sender id, expected 0x0, is {}", - sender_id + "incorrect sender id, expected 0x0, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -213,8 +210,7 @@ fn test_json2sbp_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.handshake[0], 118, @@ -293,8 +289,7 @@ fn test_sbp2json_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0, - "incorrect sender id, expected 0x0, is {}", - sender_id + "incorrect sender id, expected 0x0, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -356,8 +351,7 @@ fn test_sbp2json_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.handshake[0], 118, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ext_events_msg_ext_event.rs b/rust/sbp/tests/integration/auto_check_sbp_ext_events_msg_ext_event.rs index fb7fb57643..086b36651e 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ext_events_msg_ext_event.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ext_events_msg_ext_event.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_ext_events_msg_ext_event() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x6f5, - "incorrect sender id, expected 0x6f5, is {}", - sender_id + "incorrect sender id, expected 0x6f5, is {sender_id}" ); assert_eq!( msg.flags, 3, @@ -121,8 +120,7 @@ fn test_json2sbp_auto_check_sbp_ext_events_msg_ext_event() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x6f5, - "incorrect sender id, expected 0x6f5, is {}", - sender_id + "incorrect sender id, expected 0x6f5, is {sender_id}" ); assert_eq!( msg.flags, 3, @@ -206,8 +204,7 @@ fn test_sbp2json_auto_check_sbp_ext_events_msg_ext_event() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x6f5, - "incorrect sender id, expected 0x6f5, is {}", - sender_id + "incorrect sender id, expected 0x6f5, is {sender_id}" ); assert_eq!( msg.flags, 3, diff --git a/rust/sbp/tests/integration/auto_check_sbp_file_io_msg_fileio_write_resp.rs b/rust/sbp/tests/integration/auto_check_sbp_file_io_msg_fileio_write_resp.rs index d514994cf7..465f9135b8 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_file_io_msg_fileio_write_resp.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_file_io_msg_fileio_write_resp.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_file_io_msg_fileio_write_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.sequence, 202, @@ -99,8 +98,7 @@ fn test_json2sbp_auto_check_sbp_file_io_msg_fileio_write_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.sequence, 202, @@ -162,8 +160,7 @@ fn test_sbp2json_auto_check_sbp_file_io_msg_fileio_write_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.sequence, 202, diff --git a/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_aux.rs b/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_aux.rs index 6431fb8ce9..87a2838959 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_aux.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_aux.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_imu_msg_imu_aux() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1234, - "incorrect sender id, expected 0x1234, is {}", - sender_id + "incorrect sender id, expected 0x1234, is {sender_id}" ); assert_eq!( msg.imu_conf, 66, @@ -109,8 +108,7 @@ fn test_json2sbp_auto_check_sbp_imu_msg_imu_aux() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1234, - "incorrect sender id, expected 0x1234, is {}", - sender_id + "incorrect sender id, expected 0x1234, is {sender_id}" ); assert_eq!( msg.imu_conf, 66, @@ -182,8 +180,7 @@ fn test_sbp2json_auto_check_sbp_imu_msg_imu_aux() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1234, - "incorrect sender id, expected 0x1234, is {}", - sender_id + "incorrect sender id, expected 0x1234, is {sender_id}" ); assert_eq!( msg.imu_conf, 66, diff --git a/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_raw.rs b/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_raw.rs index c39c4700b7..93135aa4cb 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_raw.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_raw.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_imu_msg_imu_raw() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1234, - "incorrect sender id, expected 0x1234, is {}", - sender_id + "incorrect sender id, expected 0x1234, is {sender_id}" ); assert_eq!( msg.acc_x, 96, @@ -137,8 +136,7 @@ fn test_json2sbp_auto_check_sbp_imu_msg_imu_raw() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1234, - "incorrect sender id, expected 0x1234, is {}", - sender_id + "incorrect sender id, expected 0x1234, is {sender_id}" ); assert_eq!( msg.acc_x, 96, @@ -238,8 +236,7 @@ fn test_sbp2json_auto_check_sbp_imu_msg_imu_raw() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1234, - "incorrect sender id, expected 0x1234, is {}", - sender_id + "incorrect sender id, expected 0x1234, is {sender_id}" ); assert_eq!( msg.acc_x, 96, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_acknowledge.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_acknowledge.rs index 9b3b77edb8..9b6c8007d0 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_acknowledge.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_acknowledge.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_integrity_msg_acknowledge() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2A, - "incorrect sender id, expected 0x2A, is {}", - sender_id + "incorrect sender id, expected 0x2A, is {sender_id}" ); assert_eq!( msg.area_id, 123456, @@ -126,8 +125,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_acknowledge() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2A, - "incorrect sender id, expected 0x2A, is {}", - sender_id + "incorrect sender id, expected 0x2A, is {sender_id}" ); assert_eq!( msg.area_id, 123456, @@ -216,8 +214,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_acknowledge() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2A, - "incorrect sender id, expected 0x2A, is {}", - sender_id + "incorrect sender id, expected 0x2A, is {sender_id}" ); assert_eq!( msg.area_id, 123456, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level.rs index 367905f361..a7587c9eb0 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_high_level() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.chain_id, 40, @@ -202,8 +201,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_high_level() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.chain_id, 40, @@ -368,8 +366,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_high_level() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.chain_id, 40, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los.rs index 98efc60f53..efd2987ebd 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_los[0].constellation, 11, @@ -167,8 +166,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los() let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_los[0].constellation, 11, @@ -298,8 +296,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los() let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_los[0].constellation, 11, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points.rs index ae227cfae1..90af8df40a 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_points[0], 10, @@ -157,8 +156,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_points[0], 10, @@ -278,8 +276,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_points[0], 10, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los.rs index aa62ed9ab0..d186ba9573 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_los[0].constellation, 11, @@ -162,8 +161,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_los[0].constellation, 11, @@ -288,8 +286,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_los[0].constellation, 11, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_satellites.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_satellites.rs index ce97004db6..c8d5d3cbba 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_satellites.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_satellites.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_satellites() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.chain_id, 4, @@ -151,8 +150,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_satellites() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.chain_id, 4, @@ -266,8 +264,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_satellites() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.chain_id, 4, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points.rs index 23a61f6657..69b295642a 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_points[0], 10, @@ -157,8 +156,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_points[0], 10, @@ -278,8 +276,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_points[0], 10, diff --git a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_fwd.rs b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_fwd.rs index 2186a295ea..754c325479 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_fwd.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_fwd.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_logging_msg_fwd() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.fwd_payload[0], 86, @@ -187,8 +186,7 @@ fn test_json2sbp_auto_check_sbp_logging_msg_fwd() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.fwd_payload[0], 86, @@ -338,8 +336,7 @@ fn test_sbp2json_auto_check_sbp_logging_msg_fwd() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.fwd_payload[0], 86, diff --git a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_log.rs b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_log.rs index 60f3655255..307cba5f1e 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_log.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_log.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_logging_msg_log() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x90a, - "incorrect sender id, expected 0x90a, is {}", - sender_id + "incorrect sender id, expected 0x90a, is {sender_id}" ); assert_eq!( msg.level, 6, @@ -110,8 +109,7 @@ fn test_json2sbp_auto_check_sbp_logging_msg_log() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x90a, - "incorrect sender id, expected 0x90a, is {}", - sender_id + "incorrect sender id, expected 0x90a, is {sender_id}" ); assert_eq!( msg.level, 6, @@ -184,8 +182,7 @@ fn test_sbp2json_auto_check_sbp_logging_msg_log() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x90a, - "incorrect sender id, expected 0x90a, is {}", - sender_id + "incorrect sender id, expected 0x90a, is {sender_id}" ); assert_eq!( msg.level, 6, diff --git a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_print_dep.rs b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_print_dep.rs index d505978cce..3cd1d2021a 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_print_dep.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_print_dep.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -88,8 +87,7 @@ fn test_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -131,8 +129,7 @@ fn test_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -174,8 +171,7 @@ fn test_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -217,8 +213,7 @@ fn test_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -260,8 +255,7 @@ fn test_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -322,8 +316,7 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -370,8 +363,7 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -418,8 +410,7 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -466,8 +457,7 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -514,8 +504,7 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -562,8 +551,7 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -633,8 +621,7 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -695,8 +682,7 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -757,8 +743,7 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -819,8 +804,7 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -881,8 +865,7 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), @@ -943,8 +926,7 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( msg.text.to_string(), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_age_corrections.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_age_corrections.rs index d48c0bd675..bfb82453c2 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_age_corrections.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_age_corrections.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_navigation_msg_age_corrections() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.age, 30, @@ -104,8 +103,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_age_corrections() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.age, 30, @@ -172,8 +170,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_age_corrections() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.age, 30, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef.rs index cf5e6cdc46..e8e0fc3a3c 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -112,8 +111,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -180,8 +178,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -248,8 +245,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -316,8 +312,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -404,8 +399,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -478,8 +472,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -552,8 +545,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -626,8 +618,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -700,8 +691,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -796,8 +786,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -883,8 +872,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -970,8 +958,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1057,8 +1044,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1144,8 +1130,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef_dep_a.rs index 9133266793..ff17f228a2 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef_dep_a.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -112,8 +111,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -180,8 +178,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -248,8 +245,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -316,8 +312,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -384,8 +379,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -452,8 +446,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -520,8 +513,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -588,8 +580,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -656,8 +647,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -724,8 +714,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -812,8 +801,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -886,8 +874,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -960,8 +947,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1034,8 +1020,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1108,8 +1093,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1182,8 +1166,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1256,8 +1239,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1330,8 +1312,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1404,8 +1385,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1478,8 +1458,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1552,8 +1531,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1648,8 +1626,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1735,8 +1712,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1822,8 +1798,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1909,8 +1884,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1996,8 +1970,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2083,8 +2056,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2170,8 +2142,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2257,8 +2228,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2344,8 +2314,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2431,8 +2400,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2518,8 +2486,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned.rs index 18ee959ca3..222c565ec6 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32153, @@ -117,8 +116,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32622, @@ -190,8 +188,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32750, @@ -263,8 +260,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32559, @@ -336,8 +332,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32421, @@ -429,8 +424,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32153, @@ -508,8 +502,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32622, @@ -587,8 +580,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32750, @@ -666,8 +658,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32559, @@ -745,8 +736,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32421, @@ -846,8 +836,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32153, @@ -938,8 +927,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32622, @@ -1030,8 +1018,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32750, @@ -1122,8 +1109,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32559, @@ -1214,8 +1200,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32421, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned_dep_a.rs index 49d5631b79..d81a84389a 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned_dep_a.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -113,8 +112,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -182,8 +180,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -251,8 +248,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -320,8 +316,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -389,8 +384,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -15325, @@ -462,8 +456,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -15325, @@ -535,8 +528,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -24263, @@ -608,8 +600,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -24266, @@ -681,8 +672,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -22880, @@ -754,8 +744,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -22880, @@ -847,8 +836,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -922,8 +910,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -997,8 +984,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -1072,8 +1058,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -1147,8 +1132,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -1222,8 +1206,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -15325, @@ -1301,8 +1284,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -15325, @@ -1380,8 +1362,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -24263, @@ -1459,8 +1440,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -24266, @@ -1538,8 +1518,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -22880, @@ -1617,8 +1596,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -22880, @@ -1718,8 +1696,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -1806,8 +1783,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -1894,8 +1870,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -1982,8 +1957,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -2070,8 +2044,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -2158,8 +2131,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -15325, @@ -2250,8 +2222,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -15325, @@ -2342,8 +2313,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -24263, @@ -2434,8 +2404,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -24266, @@ -2526,8 +2495,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -22880, @@ -2618,8 +2586,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -22880, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops.rs index e583353f5d..1a5c528437 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_navigation_msg_dops() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -131,8 +130,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -226,8 +224,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops_dep_a.rs index 2fad058d46..b60841f638 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops_dep_a.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -105,8 +104,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -167,8 +165,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -229,8 +226,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 247, @@ -291,8 +287,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 65535, @@ -353,8 +348,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -415,8 +409,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -477,8 +470,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -539,8 +531,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -622,8 +613,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -691,8 +681,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -760,8 +749,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -829,8 +817,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 247, @@ -898,8 +885,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 65535, @@ -967,8 +953,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1036,8 +1021,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1105,8 +1089,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1174,8 +1157,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1264,8 +1246,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -1345,8 +1326,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -1426,8 +1406,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -1507,8 +1486,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 247, @@ -1588,8 +1566,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 65535, @@ -1669,8 +1646,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1750,8 +1726,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1831,8 +1806,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1912,8 +1886,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time.rs index ce88929105..34ed1fb743 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -95,8 +94,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -147,8 +145,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -199,8 +196,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -251,8 +247,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -324,8 +319,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -383,8 +377,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -442,8 +435,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -501,8 +493,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -560,8 +551,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -640,8 +630,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -711,8 +700,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -782,8 +770,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -853,8 +840,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -924,8 +910,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_dep_a.rs index 9c3ca8ead7..4d5da66cd7 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_dep_a.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -95,8 +94,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -147,8 +145,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -199,8 +196,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -251,8 +247,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -303,8 +298,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -355,8 +349,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -407,8 +400,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -459,8 +451,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -511,8 +502,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -563,8 +553,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -636,8 +625,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -695,8 +683,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -754,8 +741,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -813,8 +799,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -872,8 +857,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -931,8 +915,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -990,8 +973,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1049,8 +1031,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1108,8 +1089,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1167,8 +1147,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1226,8 +1205,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1306,8 +1284,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1377,8 +1354,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1448,8 +1424,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1519,8 +1494,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1590,8 +1564,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1661,8 +1634,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1732,8 +1704,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1803,8 +1774,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1874,8 +1844,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1945,8 +1914,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2016,8 +1984,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_gnss.rs index 0089a10bd3..e8a60044f3 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_gnss.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -95,8 +94,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -147,8 +145,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -199,8 +196,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -251,8 +247,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -324,8 +319,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -383,8 +377,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -442,8 +435,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -501,8 +493,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -560,8 +551,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -640,8 +630,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -711,8 +700,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -782,8 +770,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -853,8 +840,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -924,8 +910,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef.rs index b9979b4957..5c741b1f87 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -113,8 +112,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -182,8 +180,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -250,8 +247,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -338,8 +334,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -412,8 +407,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -486,8 +480,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -560,8 +553,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -656,8 +648,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -744,8 +735,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -832,8 +822,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -919,8 +908,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov.rs index 851add580e..9b0b653393 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_cov() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_x_x.almost_eq(8.00000000000000000e+00), @@ -158,8 +157,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_cov() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_x_x.almost_eq(8.00000000000000000e+00), @@ -280,8 +278,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_cov() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_x_x.almost_eq(8.00000000000000000e+00), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov_gnss.rs index 41f67ca2aa..8f305f8717 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov_gnss.rs @@ -46,8 +46,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_cov_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert!( msg.cov_x_x.almost_eq(9.69901494681835175e-03), @@ -159,8 +158,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_cov_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert!( msg.cov_x_x.almost_eq(9.69901494681835175e-03), @@ -282,8 +280,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_cov_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert!( msg.cov_x_x.almost_eq(9.69901494681835175e-03), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_dep_a.rs index 360c911dee..887ede7a2b 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_dep_a.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -112,8 +111,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -180,8 +178,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -248,8 +245,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -316,8 +312,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -384,8 +379,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -452,8 +446,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -520,8 +513,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -588,8 +580,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -656,8 +647,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -724,8 +714,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -812,8 +801,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -886,8 +874,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -960,8 +947,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1034,8 +1020,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1108,8 +1093,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1182,8 +1166,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1256,8 +1239,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1330,8 +1312,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1404,8 +1385,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1478,8 +1458,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1552,8 +1531,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1648,8 +1626,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1735,8 +1712,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1822,8 +1798,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1909,8 +1884,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1996,8 +1970,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2083,8 +2056,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2170,8 +2142,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2257,8 +2228,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2344,8 +2314,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2431,8 +2400,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2518,8 +2486,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecefgnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecefgnss.rs index 40e75463ab..360fefaceb 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecefgnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecefgnss.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecefgnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.accuracy, 182, @@ -132,8 +131,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecefgnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.accuracy, 182, @@ -228,8 +226,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecefgnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.accuracy, 182, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh.rs index 5aab5d6d95..c509bfe94e 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -119,8 +118,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -193,8 +191,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -267,8 +264,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -341,8 +337,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -434,8 +429,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -513,8 +507,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -592,8 +585,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -671,8 +663,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -750,8 +741,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -852,8 +842,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -945,8 +934,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -1038,8 +1026,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -1131,8 +1118,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -1224,8 +1210,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov.rs index a5c9d84ba4..f3e7888fc5 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_cov() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_d_d.almost_eq(2.00000000000000000e+00), @@ -158,8 +157,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_cov() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_d_d.almost_eq(2.00000000000000000e+00), @@ -280,8 +278,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_cov() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_d_d.almost_eq(2.00000000000000000e+00), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov_gnss.rs index fd200edf1e..9164c5bbf2 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov_gnss.rs @@ -46,8 +46,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_cov_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert!( msg.cov_d_d.almost_eq(3.28813754022121429e-02), @@ -159,8 +158,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_cov_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert!( msg.cov_d_d.almost_eq(3.28813754022121429e-02), @@ -282,8 +280,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_cov_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert!( msg.cov_d_d.almost_eq(3.28813754022121429e-02), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_dep_a.rs index 2775bcd4fc..344b2ff066 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_dep_a.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -118,8 +117,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -192,8 +190,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -266,8 +263,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -340,8 +336,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -413,8 +408,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -487,8 +481,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -561,8 +554,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -634,8 +626,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -708,8 +699,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -782,8 +772,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -875,8 +864,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -954,8 +942,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -1033,8 +1020,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1112,8 +1098,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -1191,8 +1176,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1270,8 +1254,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1349,8 +1332,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1428,8 +1410,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1507,8 +1488,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1586,8 +1566,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1665,8 +1644,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1767,8 +1745,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1859,8 +1836,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -1952,8 +1928,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2045,8 +2020,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -2138,8 +2112,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2230,8 +2203,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2323,8 +2295,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2416,8 +2387,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2508,8 +2478,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2601,8 +2570,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2694,8 +2662,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_gnss.rs index 27408e3268..35685dff9a 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_gnss.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.flags, 4, @@ -138,8 +137,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.flags, 4, @@ -240,8 +238,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.flags, 4, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pose_relative.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pose_relative.rs index db2779acfa..dbee5c8de1 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pose_relative.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pose_relative.rs @@ -46,8 +46,7 @@ fn test_auto_check_sbp_navigation_msg_pose_relative() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_c_x_x.almost_eq(2.00000000000000000e+00), @@ -219,8 +218,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pose_relative() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_c_x_x.almost_eq(2.00000000000000000e+00), @@ -402,8 +400,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pose_relative() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_c_x_x.almost_eq(2.00000000000000000e+00), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_protection_level.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_protection_level.rs index 44f792a58f..527091203e 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_protection_level.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_protection_level.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_protection_level() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -132,8 +131,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_protection_level() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -228,8 +226,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_protection_level() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_reference_frame_param.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_reference_frame_param.rs index 5a1e00914ea6b6dc36e2f7396009aa17c527ea6e..e2b6a1335dd307480245d505f9a4cb3f7e95e288 100644 GIT binary patch delta 93 zcmeC0&3IxKd5%#>QC$&H$xlP}n@ZvMa#EQLdYSzz;4xi?M4qqrzz76t7>5jQ%hn=HiI_=C8- zi->jW(kNWfENv8(BGgR^)rA$TAR^JA3n8F)#tG(*cKhzR=bZPwceL%A`Qci5^SWZV zcc7cPZ}K@sJJuG6ueXMG8iPvA<&qPx`M5uTQ6gh9iHzq`ITLu_~t zidszfbvhL$yd4Q!4P+A{SVe3M9Y^93HnCA|Q*+}zEG?*Dq{{K*w@*w(?TD?GilQ>x z#U_tD&FM8fX{2K|^wV<3rG;^}ORfA86e3r4whxyVTbP2}ZLp}NrrD^7@kZd`T9kbc zizONxadv7ojqOGmb~AvG(Zk94V;D<&V7X=-e`UNpE2z@-9~9N#(UoMIESm7okSw?tRBhf_Ku7nj{`4>#qDPVQ7w|d!l^SJT&aaF%zKddmuUV=Y^5Hy%n6o`-x5hBK;2yqBovIyZ#(i8-NP|?yiXf*^u z!*eP4h!85u$f2Pcf+nk_sp7o|8l1X5eb@V<^`7&cbG~!G^(*sB$$Z>qfdz*EV}n)< zWjs6vthOfo1wxr9PLzr~i0fuJ5-zacHg9U6@+7MF*BXjPg3D|`g!B!s&E(xn%nVUX zdET0JDlzRcq2zTl!-TT=Q#X~oXW*}7P#JmV^_gm{6CYQq87l!hGfN@~=|>I<2VWq0 zFS5QK&Iz~fQS^`7XbKF;-6kF0GH8=LP7Yr4O=v-tBl#E5J{>l81Ocl8<>e^e&CdPX z)es!dI&mjC&7h60YG_g n{zlMly4a%atm>>N8KhjmEZ*rq panic!("Invalid message type! Expected a MsgSettingsReadByIndexDone"), @@ -94,8 +93,7 @@ fn test_json2sbp_auto_check_sbp_settings_msg_settings_read_by_index_done() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); } _ => panic!("Invalid message type! Expected a MsgSettingsReadByIndexDone"), @@ -152,8 +150,7 @@ fn test_sbp2json_auto_check_sbp_settings_msg_settings_read_by_index_done() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); } _ => panic!("Invalid message type! Expected a MsgSettingsReadByIndexDone"), diff --git a/rust/sbp/tests/integration/auto_check_sbp_settings_msg_settings_read_by_index_resp.rs b/rust/sbp/tests/integration/auto_check_sbp_settings_msg_settings_read_by_index_resp.rs index f41be53ea731021b90d9a62942d0c602e24cab62..b68a63cf62be0d1a5a8db45a1c5dff71c42098fc 100644 GIT binary patch delta 458 zcmX@n#q_V8X+snTcX4W7N@`JjW=gHnpL*Z@?8$%}kT!s^3oL<+-%E tA2U{#wHGFdS~3g}7`knEey>x%AU*Z;Rdh!d;#>zht80RSxRrnLY7 delta 352 zcmey@&UB)SX+sppT?w!IZ=7HQKCY6wL|~1>1Sw zd@DPOz&rcpr~>cZ*P#l$RWWATtQE8d*;|J>Q4HZ1&}Ew36UI4tZNcNozlE-Bwku6OgbDppk4w<`J&+1%!d0Nc2gO8@`> diff --git a/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_certificate.rs b/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_certificate.rs index 019317aadf..0595e2b2a3 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_certificate.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_certificate.rs @@ -49,8 +49,7 @@ fn test_auto_check_sbp_signing_msg_ed25519_certificate() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.certificate_bytes[0], 0, @@ -632,8 +631,7 @@ fn test_json2sbp_auto_check_sbp_signing_msg_ed25519_certificate() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.certificate_bytes[0], 0, @@ -1228,8 +1226,7 @@ fn test_sbp2json_auto_check_sbp_signing_msg_ed25519_certificate() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.certificate_bytes[0], 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature.rs b/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature.rs index c42cfd33db..e5a9a58138 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature.rs @@ -51,8 +51,7 @@ fn test_auto_check_sbp_signing_msg_ed25519_signature() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.fingerprint[0], 100, @@ -659,8 +658,7 @@ fn test_json2sbp_auto_check_sbp_signing_msg_ed25519_signature() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.fingerprint[0], 100, @@ -1282,8 +1280,7 @@ fn test_sbp2json_auto_check_sbp_signing_msg_ed25519_signature() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.fingerprint[0], 100, diff --git a/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature_dep.rs b/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature_dep.rs index 1f418a9a7f..12288eb0ba 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature_dep.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature_dep.rs @@ -51,8 +51,7 @@ fn test_auto_check_sbp_signing_msg_ed25519_signature_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.fingerprint[0], 100, @@ -649,8 +648,7 @@ fn test_json2sbp_auto_check_sbp_signing_msg_ed25519_signature_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.fingerprint[0], 100, @@ -1262,8 +1260,7 @@ fn test_sbp2json_auto_check_sbp_signing_msg_ed25519_signature_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.fingerprint[0], 100, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds.rs index bd1532baf4..9f098af1d0 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.const_id, 1, @@ -184,8 +183,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.const_id, 1, @@ -332,8 +330,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.const_id, 1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds.rs index 4bde68f7f4..d534d202f0 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.grid_point_id, 1000, @@ -229,8 +228,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.grid_point_id, 1000, @@ -377,8 +375,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.grid_point_id, 1000, @@ -567,8 +564,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.grid_point_id, 1000, @@ -724,8 +720,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.grid_point_id, 1000, @@ -927,8 +922,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.grid_point_id, 1000, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds.rs index ad4454f844..9cb7e6d63f 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.const_id, 1, @@ -184,8 +183,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.const_id, 1, @@ -332,8 +330,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.const_id, 1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation.rs index 08e4f312b3..24a80b1c81 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.const_id, 1, @@ -150,8 +149,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.const_id, 1, @@ -264,8 +262,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.const_id, 1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_satellite_apc.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_satellite_apc.rs index 2d988d261e..f77998129a 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_satellite_apc.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_satellite_apc.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_satellite_apc() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0, - "incorrect sender id, expected 0x0, is {}", - sender_id + "incorrect sender id, expected 0x0, is {sender_id}" ); assert_eq!( msg.apc[0].pco[0], 1, @@ -263,8 +262,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_satellite_apc() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0, - "incorrect sender id, expected 0x0, is {}", - sender_id + "incorrect sender id, expected 0x0, is {sender_id}" ); assert_eq!( msg.apc[0].pco[0], 1, @@ -490,8 +488,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_satellite_apc() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0, - "incorrect sender id, expected 0x0, is {}", - sender_id + "incorrect sender id, expected 0x0, is {sender_id}" ); assert_eq!( msg.apc[0].pco[0], 1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_stec_correction.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_stec_correction.rs index 87c8a953ba..21b5a1d2fa 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_stec_correction.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_stec_correction.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_stec_correction() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.header.num_msgs, 1, @@ -209,8 +208,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_stec_correction() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.header.num_msgs, 1, @@ -382,8 +380,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_stec_correction() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.header.num_msgs, 1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition.rs index 03cc26d8a2..8ea651c6af 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_tile_definition() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0, - "incorrect sender id, expected 0x0, is {}", - sender_id + "incorrect sender id, expected 0x0, is {sender_id}" ); assert_eq!( msg.bitmask, 1234567890, @@ -167,8 +166,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_tile_definition() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0, - "incorrect sender id, expected 0x0, is {}", - sender_id + "incorrect sender id, expected 0x0, is {sender_id}" ); assert_eq!( msg.bitmask, 1234567890, @@ -298,8 +296,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_tile_definition() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0, - "incorrect sender id, expected 0x0, is {}", - sender_id + "incorrect sender id, expected 0x0, is {sender_id}" ); assert_eq!( msg.bitmask, 1234567890, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b.rs index 16661d278e..156b00f824 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.bitmask, 1234567890, @@ -147,8 +146,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.bitmask, 1234567890, @@ -258,8 +256,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.bitmask, 1234567890, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_dgnss_status.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_dgnss_status.rs index 11c9c18bc3..8054c60118 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_dgnss_status.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_dgnss_status.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_system_msg_dgnss_status() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -118,8 +117,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_dgnss_status() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -200,8 +198,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_dgnss_status() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_group_meta.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_group_meta.rs index 9b39f7ba0d..7df2cf5334 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_group_meta.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_group_meta.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_system_msg_group_meta() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xEEEE, - "incorrect sender id, expected 0xEEEE, is {}", - sender_id + "incorrect sender id, expected 0xEEEE, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -106,8 +105,7 @@ fn test_auto_check_sbp_system_msg_group_meta() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -244,8 +242,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_group_meta() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xEEEE, - "incorrect sender id, expected 0xEEEE, is {}", - sender_id + "incorrect sender id, expected 0xEEEE, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -313,8 +310,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_group_meta() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -458,8 +454,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_group_meta() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xEEEE, - "incorrect sender id, expected 0xEEEE, is {}", - sender_id + "incorrect sender id, expected 0xEEEE, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -540,8 +535,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_group_meta() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.flags, 1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_heartbeat.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_heartbeat.rs index c1e378d1fe..1f35854e77 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_heartbeat.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_heartbeat.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_system_msg_heartbeat() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 12800, @@ -76,8 +75,7 @@ fn test_auto_check_sbp_system_msg_heartbeat() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -134,8 +132,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_heartbeat() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 12800, @@ -178,8 +175,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_heartbeat() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -241,8 +237,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_heartbeat() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 12800, @@ -295,8 +290,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_heartbeat() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_status.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_status.rs index e175b3cb91..f0f15391d1 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_status.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_status.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_system_msg_ins_status() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.flags, 536870921, @@ -99,8 +98,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_ins_status() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.flags, 536870921, @@ -162,8 +160,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_ins_status() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.flags, 536870921, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_updates.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_updates.rs index f049c246fd..cb623785e2 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_updates.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_updates.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_system_msg_ins_updates() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.gnsspos, 0, @@ -131,8 +130,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_ins_updates() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.gnsspos, 0, @@ -226,8 +224,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_ins_updates() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.gnsspos, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_sensor_aid_event.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_sensor_aid_event.rs index 3f19870dd9..7bdf455e5b 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_sensor_aid_event.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_sensor_aid_event.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_system_msg_sensor_aid_event() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -136,8 +135,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_sensor_aid_event() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -236,8 +234,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_sensor_aid_event() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_startup.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_startup.rs index 4b1daf742c..41eae1b2fe 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_startup.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_startup.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_system_msg_startup() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.cause, 0, @@ -86,8 +85,7 @@ fn test_auto_check_sbp_system_msg_startup() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.cause, 0, @@ -154,8 +152,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_startup() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.cause, 0, @@ -208,8 +205,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_startup() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.cause, 0, @@ -281,8 +277,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_startup() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.cause, 0, @@ -345,8 +340,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_startup() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.cause, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_status_journal.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_status_journal.rs index 26684934b8..5060b9ab3b 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_status_journal.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_status_journal.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_system_msg_status_journal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.journal[0].report.component, 6, @@ -157,8 +156,7 @@ fn test_auto_check_sbp_system_msg_status_journal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.journal[0].report.component, 6, @@ -250,8 +248,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_status_journal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.journal[0].report.component, 6, @@ -369,8 +366,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_status_journal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.journal[0].report.component, 6, @@ -470,8 +466,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_status_journal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.journal[0].report.component, 6, @@ -602,8 +597,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_status_journal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.journal[0].report.component, 6, diff --git a/rust/sbp/tests/integration/auto_check_sbp_telemetry_msg_tel_sv.rs b/rust/sbp/tests/integration/auto_check_sbp_telemetry_msg_tel_sv.rs index 3d861c02a7..54c2156683 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_telemetry_msg_tel_sv.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_telemetry_msg_tel_sv.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_telemetry_msg_tel_sv() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2694, - "incorrect sender id, expected 0x2694, is {}", - sender_id + "incorrect sender id, expected 0x2694, is {sender_id}" ); assert_eq!( msg.n_obs, 16, @@ -167,8 +166,7 @@ fn test_json2sbp_auto_check_sbp_telemetry_msg_tel_sv() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2694, - "incorrect sender id, expected 0x2694, is {}", - sender_id + "incorrect sender id, expected 0x2694, is {sender_id}" ); assert_eq!( msg.n_obs, 16, @@ -298,8 +296,7 @@ fn test_sbp2json_auto_check_sbp_telemetry_msg_tel_sv() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2694, - "incorrect sender id, expected 0x2694, is {}", - sender_id + "incorrect sender id, expected 0x2694, is {sender_id}" ); assert_eq!( msg.n_obs, 16, diff --git a/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_measurement_state.rs b/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_measurement_state.rs index 8afb411dc0..185c3ff8d7 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_measurement_state.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_measurement_state.rs @@ -53,8 +53,7 @@ fn test_auto_check_sbp_tracking_msg_measurement_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x79CF, - "incorrect sender id, expected 0x79CF, is {}", - sender_id + "incorrect sender id, expected 0x79CF, is {sender_id}" ); assert_eq!( msg.states[0].cn0, 162, @@ -1291,8 +1290,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_measurement_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x79CF, - "incorrect sender id, expected 0x79CF, is {}", - sender_id + "incorrect sender id, expected 0x79CF, is {sender_id}" ); assert_eq!( msg.states[0].cn0, 162, @@ -2546,8 +2544,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_measurement_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x79CF, - "incorrect sender id, expected 0x79CF, is {}", - sender_id + "incorrect sender id, expected 0x79CF, is {sender_id}" ); assert_eq!( msg.states[0].cn0, 162, diff --git a/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state.rs b/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state.rs index f446a8704d..f5c17111ff 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state.rs @@ -47,8 +47,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.92478218078613281e+01), @@ -354,8 +353,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.89941177368164062e+01), @@ -661,8 +659,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.89545707702636719e+01), @@ -968,8 +965,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.93695983886718750e+01), @@ -1275,8 +1271,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.97035179138183594e+01), @@ -1599,8 +1594,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.92478218078613281e+01), @@ -1909,8 +1903,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.89941177368164062e+01), @@ -2219,8 +2212,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.89545707702636719e+01), @@ -2529,8 +2521,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.93695983886718750e+01), @@ -2839,8 +2830,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.97035179138183594e+01), @@ -3174,8 +3164,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.92478218078613281e+01), @@ -3500,8 +3489,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.89941177368164062e+01), @@ -3826,8 +3814,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.89545707702636719e+01), @@ -4152,8 +4139,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.93695983886718750e+01), @@ -4478,8 +4464,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.97035179138183594e+01), diff --git a/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state_detailed_dep.rs b/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state_detailed_dep.rs index c0915e9695..e2bc43330e 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state_detailed_dep.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state_detailed_dep.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 169, @@ -200,8 +199,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 14, @@ -355,8 +353,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 8, @@ -510,8 +507,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 125, @@ -665,8 +661,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 64, @@ -839,8 +834,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 169, @@ -999,8 +993,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 14, @@ -1159,8 +1152,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 8, @@ -1319,8 +1311,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 125, @@ -1479,8 +1470,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 64, @@ -1662,8 +1652,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 169, @@ -1836,8 +1825,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 14, @@ -2010,8 +1998,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 8, @@ -2184,8 +2171,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 125, @@ -2358,8 +2344,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 64, diff --git a/rust/sbp/tests/integration/auto_check_sbp_tracking_msgtracking_state_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_tracking_msgtracking_state_dep_a.rs index f5a42c0030..bff321b547 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_tracking_msgtracking_state_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_tracking_msgtracking_state_dep_a.rs @@ -46,8 +46,7 @@ fn test_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.12309074401855469e+01), @@ -246,8 +245,7 @@ fn test_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.10141220092773438e+01), @@ -446,8 +444,7 @@ fn test_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.17686891555786133e+01), @@ -646,8 +643,7 @@ fn test_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(6.21398582458496094e+01), @@ -842,8 +838,7 @@ fn test_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.67645034790039062e+01), @@ -1038,8 +1033,7 @@ fn test_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(2.73942298889160156e+01), @@ -1252,8 +1246,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.12309074401855469e+01), @@ -1456,8 +1449,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.10141220092773438e+01), @@ -1660,8 +1652,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.17686891555786133e+01), @@ -1864,8 +1855,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(6.21398582458496094e+01), @@ -2064,8 +2054,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.67645034790039062e+01), @@ -2264,8 +2253,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(2.73942298889160156e+01), @@ -2488,8 +2476,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.12309074401855469e+01), @@ -2707,8 +2694,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.10141220092773438e+01), @@ -2926,8 +2912,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.17686891555786133e+01), @@ -3145,8 +3130,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(6.21398582458496094e+01), @@ -3360,8 +3344,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.67645034790039062e+01), @@ -3575,8 +3558,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(2.73942298889160156e+01), diff --git a/rust/sbp/tests/integration/auto_check_sbp_vehicle_msg_odometry.rs b/rust/sbp/tests/integration/auto_check_sbp_vehicle_msg_odometry.rs index f468197bf3..eba6c31a74 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_vehicle_msg_odometry.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_vehicle_msg_odometry.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_vehicle_msg_odometry() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -109,8 +108,7 @@ fn test_json2sbp_auto_check_sbp_vehicle_msg_odometry() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -182,8 +180,7 @@ fn test_sbp2json_auto_check_sbp_vehicle_msg_odometry() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 1, diff --git a/rust/sbp2json/tests/common/mod.rs b/rust/sbp2json/tests/common/mod.rs index 208f68edd4..92ff29cf27 100644 --- a/rust/sbp2json/tests/common/mod.rs +++ b/rust/sbp2json/tests/common/mod.rs @@ -83,7 +83,7 @@ impl Drop for DeleteTestOutput { } for file in &self.files { if file.as_path().exists() { - let _ = fs::remove_file(file).map_err(|e| format!("could not delete file: {}", e)); + let _ = fs::remove_file(file).map_err(|e| format!("could not delete file: {e}")); } } } @@ -134,10 +134,10 @@ pub fn test_round_trip( let root = find_project_root().unwrap(); let root = root.as_path(); - let input_path = root.join(format!("test_data/{}", input_filename)); - let first_transform_output = format!("test_data/test_{}.output.first_transform", test_name); - let second_transform_output = format!("test_data/test_{}.output.second_transform", test_name); - let third_transform_output = format!("test_data/test_{}.output.third_transform", test_name); + let input_path = root.join(format!("test_data/{input_filename}")); + let first_transform_output = format!("test_data/test_{test_name}.output.first_transform"); + let second_transform_output = format!("test_data/test_{test_name}.output.second_transform"); + let third_transform_output = format!("test_data/test_{test_name}.output.third_transform"); let output_path = root.join(&first_transform_output); { @@ -253,7 +253,7 @@ fn json_file_equals(a: File, b: File) -> bool { .find(|(_, res)| res.is_err()); if let Some((line, Err(err))) = wrong { - eprintln!("value mismatch at line {}\n{}", line, err); + eprintln!("value mismatch at line {line}\n{err}"); false } else { true From 9f2f39222785c8bacaeee67178047741ed005b22 Mon Sep 17 00:00:00 2001 From: Steven Meyer Date: Fri, 27 Jan 2023 13:32:02 -0800 Subject: [PATCH 2/2] rust: use &[u8] for tests (#1293) --- .../resources/rust/test/sbp_tests_template.rs | 2 +- generator/sbpg/targets/test_rust.py | 6 +- ..._bootload_msg_bootloader_handshake_resp.rs | 36 +- .../auto_check_sbp_logging_msg_log.rs | 54 ++- .../auto_check_sbp_logging_msg_print_dep.rs | 360 ++++++++++++------ ...bp_navigation_msg_reference_frame_param.rs | Bin 19784 -> 21524 bytes ...k_sbp_piksi_msg_network_bandwidth_usage.rs | Bin 26592 -> 27900 bytes .../auto_check_sbp_piksi_msg_thread_state.rs | Bin 73865 -> 77915 bytes ...ettings_msg_settings_read_by_index_resp.rs | Bin 33790 -> 40588 bytes .../auto_check_sbp_system_msg_dgnss_status.rs | 30 +- 10 files changed, 307 insertions(+), 181 deletions(-) diff --git a/generator/sbpg/targets/resources/rust/test/sbp_tests_template.rs b/generator/sbpg/targets/resources/rust/test/sbp_tests_template.rs index 28e23b7dbd..e9f1c09580 100644 --- a/generator/sbpg/targets/resources/rust/test/sbp_tests_template.rs +++ b/generator/sbpg/targets/resources/rust/test/sbp_tests_template.rs @@ -15,7 +15,7 @@ use crate::*; ((*- macro compare_value(prefix, value) *)) ((*- if value is string_type *)) -assert_eq!(msg.(((prefix|snake_case))).to_string(), (((value|str_escape))), "incorrect value for msg.(((prefix|snake_case))), expected string '{}', is '{}'", (((value|str_escape))), msg.(((prefix|snake_case)))); +assert_eq!(msg.(((prefix|snake_case))).as_bytes(), (((value|bytes_escape))), "incorrect value for msg.(((prefix|snake_case))), expected string '{:?}', is '{:?}'", (((value|bytes_escape))), msg.(((prefix|snake_case))).as_bytes()); ((*- elif value is array_type *)) ((*- for ff in value *))((( compare_value( (((prefix|snake_case))) + '[' + (((loop.index0|to_str))) + ']', (((ff))) ) )))((*- endfor *)) ((*- elif value is dict_type *)) diff --git a/generator/sbpg/targets/test_rust.py b/generator/sbpg/targets/test_rust.py index 16ee2d03ce..9c6f897b8d 100644 --- a/generator/sbpg/targets/test_rust.py +++ b/generator/sbpg/targets/test_rust.py @@ -22,14 +22,14 @@ TEST_TEMPLATE_NAME = "rust/test/sbp_tests_template.rs" TEST_MAIN_TEMPLATE_NAME = "rust/test/sbp_tests_main_template.rs" -def str_escape(value): - return "\"{}\"".format(value) +def bytes_escape(value): + return "&{}".format(list(bytes(value, "ascii"))) def mod_name(value): return value.split('.')[1] JENV.filters['to_str'] = to_str -JENV.filters['str_escape'] = str_escape +JENV.filters['bytes_escape'] = bytes_escape JENV.filters['sorted'] = sorted JENV.filters['mod_name'] = mod_name JENV.filters['lower_acronyms'] = lower_acronyms diff --git a/rust/sbp/tests/integration/auto_check_sbp_bootload_msg_bootloader_handshake_resp.rs b/rust/sbp/tests/integration/auto_check_sbp_bootload_msg_bootloader_handshake_resp.rs index b45b144133..67fd77df42 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_bootload_msg_bootloader_handshake_resp.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_bootload_msg_bootloader_handshake_resp.rs @@ -51,13 +51,11 @@ fn test_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { msg.flags ); assert_eq!( - msg.version.to_string(), - "v1.2 -", - "incorrect value for msg.version, expected string '{}', is '{}'", - "v1.2 -", - msg.version + msg.version.as_bytes(), + &[118, 49, 46, 50, 10], + "incorrect value for msg.version, expected string '{:?}', is '{:?}'", + &[118, 49, 46, 50, 10], + msg.version.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgBootloaderHandshakeResp"), @@ -166,13 +164,11 @@ fn test_json2sbp_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { msg.flags ); assert_eq!( - msg.version.to_string(), - "v1.2 -", - "incorrect value for msg.version, expected string '{}', is '{}'", - "v1.2 -", - msg.version + msg.version.as_bytes(), + &[118, 49, 46, 50, 10], + "incorrect value for msg.version, expected string '{:?}', is '{:?}'", + &[118, 49, 46, 50, 10], + msg.version.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgBootloaderHandshakeResp"), @@ -297,13 +293,11 @@ fn test_sbp2json_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { msg.flags ); assert_eq!( - msg.version.to_string(), - "v1.2 -", - "incorrect value for msg.version, expected string '{}', is '{}'", - "v1.2 -", - msg.version + msg.version.as_bytes(), + &[118, 49, 46, 50, 10], + "incorrect value for msg.version, expected string '{:?}', is '{:?}'", + &[118, 49, 46, 50, 10], + msg.version.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgBootloaderHandshakeResp"), diff --git a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_log.rs b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_log.rs index 307cba5f1e..3de796ebb0 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_log.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_log.rs @@ -53,11 +53,19 @@ fn test_auto_check_sbp_logging_msg_log() { msg.level ); assert_eq!( - msg.text.to_string(), - "Filtered all obs from 2314 at tow 83.539019", - "incorrect value for msg.text, expected string '{}', is '{}'", - "Filtered all obs from 2314 at tow 83.539019", - msg.text + msg.text.as_bytes(), + &[ + 70, 105, 108, 116, 101, 114, 101, 100, 32, 97, 108, 108, 32, 111, 98, 115, + 32, 102, 114, 111, 109, 32, 50, 51, 49, 52, 32, 97, 116, 32, 116, 111, 119, + 32, 56, 51, 46, 53, 51, 57, 48, 49, 57 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 70, 105, 108, 116, 101, 114, 101, 100, 32, 97, 108, 108, 32, 111, 98, 115, + 32, 102, 114, 111, 109, 32, 50, 51, 49, 52, 32, 97, 116, 32, 116, 111, 119, + 32, 56, 51, 46, 53, 51, 57, 48, 49, 57 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgLog"), @@ -117,11 +125,19 @@ fn test_json2sbp_auto_check_sbp_logging_msg_log() { msg.level ); assert_eq!( - msg.text.to_string(), - "Filtered all obs from 2314 at tow 83.539019", - "incorrect value for msg.text, expected string '{}', is '{}'", - "Filtered all obs from 2314 at tow 83.539019", - msg.text + msg.text.as_bytes(), + &[ + 70, 105, 108, 116, 101, 114, 101, 100, 32, 97, 108, 108, 32, 111, 98, 115, + 32, 102, 114, 111, 109, 32, 50, 51, 49, 52, 32, 97, 116, 32, 116, 111, 119, + 32, 56, 51, 46, 53, 51, 57, 48, 49, 57 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 70, 105, 108, 116, 101, 114, 101, 100, 32, 97, 108, 108, 32, 111, 98, 115, + 32, 102, 114, 111, 109, 32, 50, 51, 49, 52, 32, 97, 116, 32, 116, 111, 119, + 32, 56, 51, 46, 53, 51, 57, 48, 49, 57 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgLog"), @@ -190,11 +206,19 @@ fn test_sbp2json_auto_check_sbp_logging_msg_log() { msg.level ); assert_eq!( - msg.text.to_string(), - "Filtered all obs from 2314 at tow 83.539019", - "incorrect value for msg.text, expected string '{}', is '{}'", - "Filtered all obs from 2314 at tow 83.539019", - msg.text + msg.text.as_bytes(), + &[ + 70, 105, 108, 116, 101, 114, 101, 100, 32, 97, 108, 108, 32, 111, 98, 115, + 32, 102, 114, 111, 109, 32, 50, 51, 49, 52, 32, 97, 116, 32, 116, 111, 119, + 32, 56, 51, 46, 53, 51, 57, 48, 49, 57 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 70, 105, 108, 116, 101, 114, 101, 100, 32, 97, 108, 108, 32, 111, 98, 115, + 32, 102, 114, 111, 109, 32, 50, 51, 49, 52, 32, 97, 116, 32, 116, 111, 119, + 32, 56, 51, 46, 53, 51, 57, 48, 49, 57 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgLog"), diff --git a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_print_dep.rs b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_print_dep.rs index 3cd1d2021a..fb6505d282 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_print_dep.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_print_dep.rs @@ -48,13 +48,19 @@ fn test_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 49, 53, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 45, 50, 52, 57, 55, 32, 72, 122, 44, + 32, 50, 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 49, 53, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 45, 50, 52, 57, 55, 32, 72, 122, 44, + 32, 50, 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -90,13 +96,19 @@ fn test_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 51, 49, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 52, 50, 52, 53, 32, 72, 122, 44, 32, + 50, 49, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 51, 49, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 52, 50, 52, 53, 32, 72, 122, 44, 32, + 50, 49, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -132,13 +144,19 @@ fn test_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: Disabling channel 0 (PRN 11) -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: Disabling channel 0 (PRN 11) -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 48, 32, 40, 80, 82, 78, 32, 49, 49, 41, + 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 48, 32, 40, 80, 82, 78, 32, 49, 49, 41, + 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -174,13 +192,19 @@ fn test_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 50, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 51, 57, 57, 54, 32, 72, 122, 44, 32, 50, + 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 50, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 51, 57, 57, 54, 32, 72, 122, 44, 32, 50, + 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -216,13 +240,19 @@ fn test_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 52, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 45, 55, 52, 57, 50, 32, 72, 122, 44, 32, + 50, 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 52, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 45, 55, 52, 57, 50, 32, 72, 122, 44, 32, + 50, 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -258,13 +288,19 @@ fn test_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: Disabling channel 1 (PRN 15) -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: Disabling channel 1 (PRN 15) -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 49, 32, 40, 80, 82, 78, 32, 49, 53, 41, + 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 49, 32, 40, 80, 82, 78, 32, 49, 53, 41, + 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -319,13 +355,19 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 49, 53, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 45, 50, 52, 57, 55, 32, 72, 122, 44, + 32, 50, 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 49, 53, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 45, 50, 52, 57, 55, 32, 72, 122, 44, + 32, 50, 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -366,13 +408,19 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 51, 49, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 52, 50, 52, 53, 32, 72, 122, 44, 32, + 50, 49, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 51, 49, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 52, 50, 52, 53, 32, 72, 122, 44, 32, + 50, 49, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -413,13 +461,19 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: Disabling channel 0 (PRN 11) -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: Disabling channel 0 (PRN 11) -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 48, 32, 40, 80, 82, 78, 32, 49, 49, 41, + 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 48, 32, 40, 80, 82, 78, 32, 49, 49, 41, + 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -460,13 +514,19 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 50, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 51, 57, 57, 54, 32, 72, 122, 44, 32, 50, + 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 50, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 51, 57, 57, 54, 32, 72, 122, 44, 32, 50, + 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -507,13 +567,19 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 52, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 45, 55, 52, 57, 50, 32, 72, 122, 44, 32, + 50, 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 52, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 45, 55, 52, 57, 50, 32, 72, 122, 44, 32, + 50, 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -554,13 +620,19 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: Disabling channel 1 (PRN 15) -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: Disabling channel 1 (PRN 15) -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 49, 32, 40, 80, 82, 78, 32, 49, 53, 41, + 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 49, 32, 40, 80, 82, 78, 32, 49, 53, 41, + 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -624,13 +696,19 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 49, 53, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 45, 50, 52, 57, 55, 32, 72, 122, 44, + 32, 50, 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 49, 53, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 45, 50, 52, 57, 55, 32, 72, 122, 44, + 32, 50, 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -685,13 +763,19 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 51, 49, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 52, 50, 52, 53, 32, 72, 122, 44, 32, + 50, 49, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 51, 49, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 52, 50, 52, 53, 32, 72, 122, 44, 32, + 50, 49, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -746,13 +830,19 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: Disabling channel 0 (PRN 11) -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: Disabling channel 0 (PRN 11) -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 48, 32, 40, 80, 82, 78, 32, 49, 49, 41, + 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 48, 32, 40, 80, 82, 78, 32, 49, 49, 41, + 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -807,13 +897,19 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 50, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 51, 57, 57, 54, 32, 72, 122, 44, 32, 50, + 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 50, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 51, 57, 57, 54, 32, 72, 122, 44, 32, 50, + 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -868,13 +964,19 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 52, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 45, 55, 52, 57, 50, 32, 72, 122, 44, 32, + 50, 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 52, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 45, 55, 52, 57, 50, 32, 72, 122, 44, 32, + 50, 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -929,13 +1031,19 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: Disabling channel 1 (PRN 15) -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: Disabling channel 1 (PRN 15) -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 49, 32, 40, 80, 82, 78, 32, 49, 53, 41, + 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 49, 32, 40, 80, 82, 78, 32, 49, 53, 41, + 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_reference_frame_param.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_reference_frame_param.rs index e2b6a1335dd307480245d505f9a4cb3f7e95e288..c5e5a0899c9d3197af119ac2ba38f53769fa827e 100644 GIT binary patch delta 931 zcmX>xi*d>d#tn0YI1-EFlPXJ6izhGil3-Gcp6tjWI{5&XX9xh6NTuufv( zoxDJV11!wTA_-E$7(1DfUwiTcHz{5#`&xA!h0J0F^=d2oNk)<+8S+p^nkP>W<^~PT z&4zk*%sAb2%2XHXCJ|IOiJ`cOWipqy7+!Y~H0Yv$6mJQ#!zKsncubye^lI~6i5wA} g4jc_Mj6mBw-{`XNXn>()Ay{(7mCBw?Ugt9l0Q5>BBLDyZ delta 738 zcmbQTg7L&G#tn0YxJ&Zmi%W_!^U^gmCo}SkE2QP;GvEW0A99LMZV=YztX0=h$ShV+ zub!M3D5#j6CPJ??V+qi1&&}pi eVWJpz6Lk4d_OZJ8W#JL!%Dz@z zM=%k=r_*G6LGH;r0xdW9hvhJ%`zn@IYw`zXZiI#WlO3XP z_zbF+F?RAt5hZRtgfD1Mv&AQrV3AvOGYsrRNRr zY>FoFC~Yn@{KSlDm?4r`3`&y|1+W>0rszYY(q=_L4AW9eGSHlsD4;gER#a6H&3PCK zbtZ4LQk*O(?mGFsHP_}f);G}|nv;+0Oa`z+)h6pp2~J)RB7*LFOvM5zN}C;}F&tc+ zS%SsEbLBA{jG<6x@l%*u-yv}k6J#uHjHpmRKB@Qp?hux!8# Rbx%G=*yCnWDy~i;R;fsV$sTq7+R8H4<(+5 zReNapQmsE0pAbll`H~O>N)J7R;8QOxyn7un`tH4a-gS@Pl1=FO{`Nb+^ZT9e>`X11 zzOR|yHP+Uii4C2-dG%Zjp6#>mXgvk_A6+$)_cW}8du)NOxO#XvGMEMZLK6S*doB3JpAx8sg zYrJSeJ&Y<eyhO^_1( zqTm9nwI0^K+F)6%RlW#bpqMfs&rG^u z*b+f{>1a6xSiOFPJRUxY&156QrDgy`tjri>#JtLVB66Lfb5;etX{cInQ^#FPiSp zn%?f-Y)%aMhZFJeU_bO;wbnOBgWbn;BlEC z-l)--xwlRPgs%WFZ?0yrtyQd+L+y34%U=o?GlOFB7_u?8X z#zeFRGiL6ftJZqSnD>-t4M6{bK@cs6&~&ne{OgK3n};M@(coaPzfTK>t{Y&Ch-f)6 zl|D>5slUx4`P$G#WF0OEfNWVAIYi5C2#NSaeO*y$Zpez2KtyW*SsY+|YFS?vb$8op z#q1%gR>BZ1htZiH`9L9?RRRz#2SCi+nQA&fmT21DE?Fr*orniRkxJtJlQ&VzNg0+m zJAt%2LIamv)vh6Sn6wE84TSDiJ$-Z}0-MATASqJr2+{J%u^n~5s&!d+1cA^#n!6E^ zTp>wP0ue0-vNHNCIYN@81Rz=tD0UC{+X~E*6SR+8=;?cxB}*IJLoI}A6I7xg1*7zZ zXt^)Fj946O1l$vQX?oHp(U4s$X^7UK=`W`7sTb0!ko_tlh?YZG0~ODblm3}LE7?I7 ztt25@PBN+}`{5x*66<9>lBngRaus*&~5Z?&t4mEPz=0bZ^ghsRsb(cFBz7IyA< zCpHF>Eu}$3%MF%aia&Jl6U!K5+NFUa=~D6#t-&ibRGyA5JgROQ)5-EUoy`wQql^_^ zi=#x6rnH7=xwT4FEv0fz$ak2inn>Orq-i~T29d`?F;z}Aq{@H diff --git a/rust/sbp/tests/integration/auto_check_sbp_settings_msg_settings_read_by_index_resp.rs b/rust/sbp/tests/integration/auto_check_sbp_settings_msg_settings_read_by_index_resp.rs index b68a63cf62be0d1a5a8db45a1c5dff71c42098fc..3f635a6e69d2814230dd34a7ecd20e989c43bd53 100644 GIT binary patch delta 2961 zcmey@&eXG)X+s7lM`Ce&Qe{bM@#I2I2`07Z$$|o+lMDD*CSPPW6;-e_*HJJuFaQyz zK*G>aN5Nq7L@qI~iue#a4h2iFxG7w)mL+2Hd@c^K0`5@n$&rZk=qMOl=qOkK zO*8?r&4BtqVwOO|4M3JM#!i0d;l*oZU#qU8kXfvtUTtMRxv@!dfZa5aOOaC#9!3Y1 zl{RmXS7n^MAnwxU^TKY-llcX<;0!{=4E@RaJRFnNss&-;F!^7c3$eb%uN}L?HvbVi z%Yw&2W&*%|L99|Hz6buq7t{sFIzmSS?0g?Bmmp;g-o8 z^aE2cK%t)~0!mk~xn>GtrO~U6M(sCXV zE+oxBtZoK}qpwpKK6jIr>4$$%~7 zQYZI>aZX-a@Obn5IAQj|lcVA8n*3Yn%4XZ59@fe4?D5riq-97V(jaLD;tbo(YYQ&m l3s=%IBoXc=%|M*)2B(Q@Rd~|`zHCZ_OYv#P?XKMBi2zeMN1gxx delta 1924 zcmeC#%k;0EX+s7lXGwm1aY<2TUi##Z!V+pqC8;^7xv3>ZmGMQ1DVg~U$@zI{ndzlP zi6xo&c~F%MlXn=YF)~a}WEY>jLDht_R$WISvsgjBdh$nANm7lFo}9qRzBy3LgK@J0 z|49~9_b4fqCKi>%r28Ojn7Ri&So$(H8nOR!dl!KVb;1ZPLAqayZJr88}sD*VOvn$AcN%fq{Pw` zU<{-(7#e^94%-Q7f!XWIIQi}5OAvegb&02Puc+vr_k{{gqP3|dptjC?2u;fAH)Q?*uI3nQI+XjZASx+cAVX>Hy7Pyt0 z1EQv*Sx02@!D1_sIuVxNOWrkj5?|{iU~ZJsngLbe@uO2QH+#A$>@3DEX8o1;44q9qAJ$q9?SgtWkI+%)+=nqP@bMp!H*QYYN* LNt0(V)p7v<3EYXW diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_dgnss_status.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_dgnss_status.rs index 8054c60118..542d4d3f57 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_dgnss_status.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_dgnss_status.rs @@ -61,11 +61,11 @@ fn test_auto_check_sbp_system_msg_dgnss_status() { msg.num_signals ); assert_eq!( - msg.source.to_string(), - "Skylark", - "incorrect value for msg.source, expected string '{}', is '{}'", - "Skylark", - msg.source + msg.source.as_bytes(), + &[83, 107, 121, 108, 97, 114, 107], + "incorrect value for msg.source, expected string '{:?}', is '{:?}'", + &[83, 107, 121, 108, 97, 114, 107], + msg.source.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgDgnssStatus"), @@ -135,11 +135,11 @@ fn test_json2sbp_auto_check_sbp_system_msg_dgnss_status() { msg.num_signals ); assert_eq!( - msg.source.to_string(), - "Skylark", - "incorrect value for msg.source, expected string '{}', is '{}'", - "Skylark", - msg.source + msg.source.as_bytes(), + &[83, 107, 121, 108, 97, 114, 107], + "incorrect value for msg.source, expected string '{:?}', is '{:?}'", + &[83, 107, 121, 108, 97, 114, 107], + msg.source.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgDgnssStatus"), @@ -216,11 +216,11 @@ fn test_sbp2json_auto_check_sbp_system_msg_dgnss_status() { msg.num_signals ); assert_eq!( - msg.source.to_string(), - "Skylark", - "incorrect value for msg.source, expected string '{}', is '{}'", - "Skylark", - msg.source + msg.source.as_bytes(), + &[83, 107, 121, 108, 97, 114, 107], + "incorrect value for msg.source, expected string '{:?}', is '{:?}'", + &[83, 107, 121, 108, 97, 114, 107], + msg.source.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgDgnssStatus"),