Skip to content

Commit

Permalink
fix(query_test): ecs_asserts panic tests should not run in release
Browse files Browse the repository at this point in the history
  • Loading branch information
Indra-db committed Nov 16, 2024
1 parent e2fc48c commit 82d2b75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flecs_ecs/tests/flecs/query_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ fn query_iter_targets_second_field() {

#[test]
#[should_panic]
#[cfg(debug_assertions)]
fn query_iter_targets_field_out_of_range() {
let world = World::new();

Expand All @@ -219,6 +220,7 @@ fn query_iter_targets_field_out_of_range() {

#[test]
#[should_panic]
#[cfg(debug_assertions)]
fn query_iter_targets_field_not_a_pair() {
let world = World::new();

Expand All @@ -243,6 +245,7 @@ fn query_iter_targets_field_not_a_pair() {

#[test]
#[should_panic]
#[cfg(debug_assertions)]
fn query_iter_targets_field_not_set() {
let world = World::new();

Expand Down

0 comments on commit 82d2b75

Please sign in to comment.