Skip to content

Commit

Permalink
Use cfg(panic = unwind) instead of a check for wasm32 to see if unwin…
Browse files Browse the repository at this point in the history
…ding is supported

This allows the test to run on a future wasm target with exception support as
well as running the test suite with panic=abort on non-wasm targets.
  • Loading branch information
bjorn3 committed Oct 2, 2023
1 parent f3dd0b8 commit b1d06ed
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/distributions/uniform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1536,11 +1536,7 @@ mod tests {
}

#[test]
#[cfg(all(
feature = "std",
not(target_arch = "wasm32"),
not(target_arch = "asmjs")
))]
#[cfg(all(feature = "std", panic = "unwind"))]
fn test_float_assertions() {
use super::SampleUniform;
use std::panic::catch_unwind;
Expand Down

0 comments on commit b1d06ed

Please sign in to comment.