Skip to content

Commit

Permalink
add test to check issue #99
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerber-Ursi committed Jun 17, 2024
1 parent d742c6f commit f37d491
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include_dir/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,13 @@ fn msrv_is_in_sync() {
.unwrap();
assert_eq!(workflow_msrv, msrv);
}

#[test]
fn include_dir_conditionally() {
static CONDITIONAL_PARENT_DIR: Option<Dir<'_>> = if true {
Some(include_dir!("$CARGO_MANIFEST_DIR"))
} else {
None
};
let _ = CONDITIONAL_PARENT_DIR.as_ref().unwrap();
}

0 comments on commit f37d491

Please sign in to comment.