Skip to content

Commit

Permalink
chore: Compile the test skipped due to extension_inference (#879)
Browse files Browse the repository at this point in the history
This tests fails at runtime if extension inference is enabled.

We should however compile it, so compiler errors are more easily
catched.
  • Loading branch information
aborgna-q authored Mar 14, 2024
1 parent d5294ad commit 165cdf6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion quantinuum-hugr/src/algorithm/const_fold.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,11 @@ mod test {
Ok(())
}

#[cfg(not(feature = "extension_inference"))] // inference fails for test graph, shouldn't
#[test]
#[cfg_attr(
feature = "extension_inference",
ignore = "inference fails for test graph, it shouldn't"
)]
fn test_list_ops() -> Result<(), Box<dyn std::error::Error>> {
use crate::std_extensions::collections::{self, ListOp, ListValue};

Expand Down

0 comments on commit 165cdf6

Please sign in to comment.