From 77d36ce22b38466aca591e03209e31e1bed75a90 Mon Sep 17 00:00:00 2001 From: Jiahao Yuan Date: Sun, 15 Dec 2024 22:11:07 +0800 Subject: [PATCH] add simple test --- pyo3-build-config/src/impl_.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyo3-build-config/src/impl_.rs b/pyo3-build-config/src/impl_.rs index 886b77e7976..4f42790a9ee 100644 --- a/pyo3-build-config/src/impl_.rs +++ b/pyo3-build-config/src/impl_.rs @@ -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