Skip to content

Tests about size of SpotMarket and PerpMarket are failing #891

Open
@JakkuSakura

Description

@JakkuSakura

I'm using commit 79fdcab, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions