Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add a failing test for a target spec containing target_abi
  • Loading branch information
carols10cents committed Nov 7, 2022
commit 2b27b98e8a13425c68994ab6d6103d3c1631c524
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