Skip to content
Merged
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 authored and sunshowers committed Nov 7, 2022
commit a4555d38dc46503e86c7d004b10d8954fe4facb3
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