fn test_eif_section_header_to_from_be_bytes()

in src/defs/mod.rs [296:316]


    fn test_eif_section_header_to_from_be_bytes() {
        let eif_section_header = EifSectionHeader {
            section_type: EifSectionType::EifSectionSignature,
            flags: 3,
            section_size: 123,
        };

        let bytes = eif_section_header.to_be_bytes();
        assert_eq!(bytes.len(), EifSectionHeader::size());

        let new_eif_section_header = EifSectionHeader::from_be_bytes(&bytes).unwrap();
        assert_eq!(
            eif_section_header.section_type,
            new_eif_section_header.section_type
        );
        assert_eq!(eif_section_header.flags, new_eif_section_header.flags);
        assert_eq!(
            eif_section_header.section_size,
            new_eif_section_header.section_size
        );
    }