Skip to content

Commit

Permalink
add simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
kahojyun committed Dec 15, 2024
1 parent df64a88 commit 77d36ce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pyo3-build-config/src/impl_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2896,6 +2896,16 @@ mod tests {
.is_none());
}

#[test]
fn test_is_cross_compiling_from_to() {
assert!(cross_compiling_from_to(
&triple!("x86_64-pc-windows-msvc"),
&triple!("aarch64-pc-windows-msvc")
)
.unwrap()
.is_some());
}

#[test]
fn test_run_python_script() {
// as above, this should be okay in CI where Python is presumed installed
Expand Down

0 comments on commit 77d36ce

Please sign in to comment.