From 9018dabd6b5d413361ffafa6124a63ea3107652b Mon Sep 17 00:00:00 2001 From: popertots Date: Fri, 20 Mar 2026 10:52:46 +0000 Subject: [PATCH] remove tests --- config.toml | 2 +- src/world/tiles/chunk_data.rs | 48 ----------------------------------- 2 files changed, 1 insertion(+), 49 deletions(-) diff --git a/config.toml b/config.toml index 960c534..9e6f89b 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -initial_chunk_radius = 7 +initial_chunk_radius = 5 [spawn_counts] dorfs = 5 diff --git a/src/world/tiles/chunk_data.rs b/src/world/tiles/chunk_data.rs index d8fc275..6aebf32 100644 --- a/src/world/tiles/chunk_data.rs +++ b/src/world/tiles/chunk_data.rs @@ -298,51 +298,3 @@ impl ChunkData { ) } } - -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn test_index_roundtrip() { - for x in 0..CHUNK_SIZE { - for y in 0..CHUNK_SIZE { - for z in -(Z_BELOW as i32)..=(Z_ABOVE as i32) { - let idx = ChunkData::pos_to_index(x, y, z); - let (rx, ry, rz) = ChunkData::index_to_pos(idx); - assert_eq!((x, y, z), (rx, ry, rz), "Failed for ({}, {}, {})", x, y, z); - } - } - } - } - - #[test] - fn test_bit_set_clear() { - let mut chunk = ChunkData::new(IVec2::new(0, 0)); - - // Set a tile at (2, 3, 1) - chunk.set_floor_tile(2, 3, 1, 42, true, true); - - assert!(chunk.is_standable(2, 3, 1)); - - // Check that setting clears properly - chunk.set_floor_tile(2, 3, 1, 0, false, false); - - // Need fixture or floor below to stand - assert!(!chunk.is_standable(2, 3, 1)); - } - - #[test] - fn test_standability_logic() { - let mut chunk = ChunkData::new(IVec2::new(0, 0)); - - // Set floor at z=1 that you can stand ON - chunk.set_floor_tile(0, 0, 1, 1, false, true); - - // Set floor at z=2 that you can stand IN (air) - chunk.set_floor_tile(0, 0, 2, 0, true, false); - - // Should be standable at z=2: in_air AND on_floor_below - assert!(chunk.is_standable(0, 0, 2)); - } -}