zipatch-rs 1.7.0

Parser for FFXIV ZiPatch patch files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `Platform` Display impl — moved from `src/lib.rs` inline tests during the
//! API-overhaul pass.

use zipatch_rs::Platform;

#[test]
fn platform_display_all_variants() {
    assert_eq!(format!("{}", Platform::Win32), "Win32");
    assert_eq!(format!("{}", Platform::Ps3), "PS3");
    assert_eq!(format!("{}", Platform::Ps4), "PS4");
    assert_eq!(format!("{}", Platform::Unknown(42)), "Unknown(42)");
    // Zero unknown ID is distinct from Win32.
    assert_eq!(format!("{}", Platform::Unknown(0)), "Unknown(0)");
}