Skip to content

Commit

Permalink
also add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Oct 21, 2024
1 parent cb560c6 commit f70c59e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/used_variables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ mod test {
- ${{ pin_subpackage("foobar") }}
- ${{ pin_compatible(compatible) }}
- ${{ pin_compatible(abc ~ def) }}
- if: match(xpython, ">=3.7")
then: numpy 100
"#;

let recipe_node = crate::recipe::custom_yaml::Node::parse_yaml(0, recipe).unwrap();
Expand All @@ -332,6 +334,7 @@ mod test {
assert!(used_vars.contains("compatible"));
assert!(used_vars.contains("abc"));
assert!(used_vars.contains("def"));
assert!(used_vars.contains("xpython"));
}

#[test]
Expand Down

0 comments on commit f70c59e

Please sign in to comment.