From c38e2d037dddd5542d10dda1372fca26e9c917cc Mon Sep 17 00:00:00 2001 From: Vitaliy Sapronenko Date: Wed, 27 Mar 2024 22:48:20 +0200 Subject: [PATCH] Math tests fix (#12748) # Objective Fixes `cargo test -p bevy_math` as in #12729. ## Solution As described in [message](https://github.com/bevyengine/bevy/issues/12729#issuecomment-2022197944) Added workaround `bevy_math = { path = ".", version = "0.14.0-dev", features = ["approx"] }` to `bevy_math`'s `dev-dependencies` --------- Co-authored-by: BD103 <59022059+BD103@users.noreply.github.com> --- crates/bevy_math/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bevy_math/Cargo.toml b/crates/bevy_math/Cargo.toml index 28ab5d1cd3..31fd4653e8 100644 --- a/crates/bevy_math/Cargo.toml +++ b/crates/bevy_math/Cargo.toml @@ -23,6 +23,8 @@ approx = "0.5" # Supply rngs for examples and tests rand = "0.8" rand_chacha = "0.3" +# Enable the approx feature when testing. +bevy_math = { path = ".", version = "0.14.0-dev", features = ["approx"] } [features] default = ["rand"]