protocol-v2
protocol-v2 copied to clipboard
Tests about size of SpotMarket and PerpMarket are failing
I'm using commit 79fdcab4ab4be6199de58ebb634c9aa3ab82691b, with cargo test
These tests are failing, rendering the programs unusable
#[test]
fn perp_market() {
let expected_size = std::mem::size_of::<PerpMarket>() + 8;
let actual_size = PerpMarket::SIZE;
assert_eq!(actual_size, expected_size);
}
#[test]
fn spot_market() {
let expected_size = std::mem::size_of::<SpotMarket>() + 8;
let actual_size = SpotMarket::SIZE;
assert_eq!(actual_size, expected_size);
}
assertion `left == right` failed
left: 1216
right: 1240
Left: 1216
Right: 1240
assertion `left == right` failed
left: 776
right: 808
Left: 776
Right: 808