Skip to content

Commit

Permalink
Add more macOS test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Mar 17, 2024
1 parent 4515220 commit 9e71dd1
Showing 1 changed file with 152 additions and 0 deletions.
152 changes: 152 additions & 0 deletions crates/platform-tags/src/tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,158 @@ mod tests {
]
"###
);

let tags = compatible_tags(&Platform::new(
Os::Macos {
major: 14,
minor: 0,
},
Arch::X86_64,
))
.unwrap();
assert_debug_snapshot!(
tags,
@r###"
[
"macosx_14_0_x86_64",
"macosx_14_0_intel",
"macosx_14_0_fat64",
"macosx_14_0_fat32",
"macosx_14_0_universal2",
"macosx_14_0_universal",
"macosx_13_0_x86_64",
"macosx_13_0_intel",
"macosx_13_0_fat64",
"macosx_13_0_fat32",
"macosx_13_0_universal2",
"macosx_13_0_universal",
"macosx_12_0_x86_64",
"macosx_12_0_intel",
"macosx_12_0_fat64",
"macosx_12_0_fat32",
"macosx_12_0_universal2",
"macosx_12_0_universal",
"macosx_11_0_x86_64",
"macosx_11_0_intel",
"macosx_11_0_fat64",
"macosx_11_0_fat32",
"macosx_11_0_universal2",
"macosx_11_0_universal",
"macosx_10_16_x86_64",
"macosx_10_16_intel",
"macosx_10_16_fat64",
"macosx_10_16_fat32",
"macosx_10_16_universal2",
"macosx_10_16_universal",
"macosx_10_15_x86_64",
"macosx_10_15_intel",
"macosx_10_15_fat64",
"macosx_10_15_fat32",
"macosx_10_15_universal2",
"macosx_10_15_universal",
"macosx_10_14_x86_64",
"macosx_10_14_intel",
"macosx_10_14_fat64",
"macosx_10_14_fat32",
"macosx_10_14_universal2",
"macosx_10_14_universal",
"macosx_10_13_x86_64",
"macosx_10_13_intel",
"macosx_10_13_fat64",
"macosx_10_13_fat32",
"macosx_10_13_universal2",
"macosx_10_13_universal",
"macosx_10_12_x86_64",
"macosx_10_12_intel",
"macosx_10_12_fat64",
"macosx_10_12_fat32",
"macosx_10_12_universal2",
"macosx_10_12_universal",
"macosx_10_11_x86_64",
"macosx_10_11_intel",
"macosx_10_11_fat64",
"macosx_10_11_fat32",
"macosx_10_11_universal2",
"macosx_10_11_universal",
"macosx_10_10_x86_64",
"macosx_10_10_intel",
"macosx_10_10_fat64",
"macosx_10_10_fat32",
"macosx_10_10_universal2",
"macosx_10_10_universal",
"macosx_10_9_x86_64",
"macosx_10_9_intel",
"macosx_10_9_fat64",
"macosx_10_9_fat32",
"macosx_10_9_universal2",
"macosx_10_9_universal",
"macosx_10_8_x86_64",
"macosx_10_8_intel",
"macosx_10_8_fat64",
"macosx_10_8_fat32",
"macosx_10_8_universal2",
"macosx_10_8_universal",
"macosx_10_7_x86_64",
"macosx_10_7_intel",
"macosx_10_7_fat64",
"macosx_10_7_fat32",
"macosx_10_7_universal2",
"macosx_10_7_universal",
"macosx_10_6_x86_64",
"macosx_10_6_intel",
"macosx_10_6_fat64",
"macosx_10_6_fat32",
"macosx_10_6_universal2",
"macosx_10_6_universal",
"macosx_10_5_x86_64",
"macosx_10_5_intel",
"macosx_10_5_fat64",
"macosx_10_5_fat32",
"macosx_10_5_universal2",
"macosx_10_5_universal",
"macosx_10_4_x86_64",
"macosx_10_4_intel",
"macosx_10_4_fat64",
"macosx_10_4_fat32",
"macosx_10_4_universal2",
"macosx_10_4_universal",
]
"###
);

let tags = compatible_tags(&Platform::new(
Os::Macos {
major: 10,
minor: 6,
},
Arch::X86_64,
))
.unwrap();
assert_debug_snapshot!(
tags,
@r###"
[
"macosx_10_6_x86_64",
"macosx_10_6_intel",
"macosx_10_6_fat64",
"macosx_10_6_fat32",
"macosx_10_6_universal2",
"macosx_10_6_universal",
"macosx_10_5_x86_64",
"macosx_10_5_intel",
"macosx_10_5_fat64",
"macosx_10_5_fat32",
"macosx_10_5_universal2",
"macosx_10_5_universal",
"macosx_10_4_x86_64",
"macosx_10_4_intel",
"macosx_10_4_fat64",
"macosx_10_4_fat32",
"macosx_10_4_universal2",
"macosx_10_4_universal",
]
"###
);
}

/// Check full tag ordering.
Expand Down

0 comments on commit 9e71dd1

Please sign in to comment.