refactor(simulation): apply rustfmt formatting
Formatting-only changes across server source and test files. No logic changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -139,8 +139,9 @@ fn all_fixtures_deserialize() {
|
||||
|
||||
if name.starts_with("snapshot_boundary") {
|
||||
// Boundary snapshot fixtures (#472): tick may exceed PROTOCOL_VERSION check
|
||||
rmp_serde::from_slice::<ObserverSnapshot>(&bytes)
|
||||
.unwrap_or_else(|e| panic!("deserialize boundary snapshot fixture {}: {}", name, e));
|
||||
rmp_serde::from_slice::<ObserverSnapshot>(&bytes).unwrap_or_else(|e| {
|
||||
panic!("deserialize boundary snapshot fixture {}: {}", name, e)
|
||||
});
|
||||
} else if name.starts_with("snapshot") {
|
||||
let snap = rmp_serde::from_slice::<ObserverSnapshot>(&bytes)
|
||||
.unwrap_or_else(|e| panic!("deserialize snapshot fixture {}: {}", name, e));
|
||||
@@ -694,19 +695,48 @@ fn nearby_interaction_contradicted_roundtrip() {
|
||||
/// int 32 (-32769 to -2^31), int 64 (-2^31-1 to -2^63).
|
||||
const BOUNDARY_VALUES: [i64; 41] = [
|
||||
// Positive boundaries (25 values)
|
||||
0, 1, 126, 127, // pos fixint
|
||||
128, 129, 254, 255, // uint 8
|
||||
256, 257, 32766, 32767, // int 16 / uint 16 asymmetry
|
||||
32768, 32769, 65534, 65535, // uint 16
|
||||
65536, 65537, 2147483646, 2147483647, // int 32 / uint 32 asymmetry
|
||||
2147483648, 4294967294, 4294967295, // uint 32
|
||||
4294967296, i64::MAX, // int 64
|
||||
0,
|
||||
1,
|
||||
126,
|
||||
127, // pos fixint
|
||||
128,
|
||||
129,
|
||||
254,
|
||||
255, // uint 8
|
||||
256,
|
||||
257,
|
||||
32766,
|
||||
32767, // int 16 / uint 16 asymmetry
|
||||
32768,
|
||||
32769,
|
||||
65534,
|
||||
65535, // uint 16
|
||||
65536,
|
||||
65537,
|
||||
2147483646,
|
||||
2147483647, // int 32 / uint 32 asymmetry
|
||||
2147483648,
|
||||
4294967294,
|
||||
4294967295, // uint 32
|
||||
4294967296,
|
||||
i64::MAX, // int 64
|
||||
// Negative boundaries (16 values)
|
||||
-1, -31, -32, // neg fixint
|
||||
-33, -34, -127, -128, // int 8
|
||||
-129, -130, -32767, -32768, // int 16
|
||||
-32769, -2147483647, -2147483648, // int 32
|
||||
-2147483649, i64::MIN, // int 64
|
||||
-1,
|
||||
-31,
|
||||
-32, // neg fixint
|
||||
-33,
|
||||
-34,
|
||||
-127,
|
||||
-128, // int 8
|
||||
-129,
|
||||
-130,
|
||||
-32767,
|
||||
-32768, // int 16
|
||||
-32769,
|
||||
-2147483647,
|
||||
-2147483648, // int 32
|
||||
-2147483649,
|
||||
i64::MIN, // int 64
|
||||
];
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user