Skip to content

Commit

Permalink
Add a failing test for a target spec containing target_abi
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents authored and sunshowers committed Nov 7, 2022
1 parent e6eb541 commit 6058991
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions target-spec/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@ mod tests {
);
}

#[test]
fn test_target_abi() {
assert!(matches!(
TargetSpec::new("cfg(any(target_arch = \"wasm32\", target_abi = \"unknown\"))"),
Ok(TargetSpec::Expression(_))
));
}

#[test]
fn test_not() {
assert!(matches!(
Expand Down

0 comments on commit 6058991

Please sign in to comment.