From 9d21c9afb71b5d0781b944a5e1a7ddc9253ba9a4 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Thu, 16 Mar 2023 19:26:35 +0100 Subject: [PATCH] Fix _faster tests --- schemsearch_faster/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/schemsearch_faster/src/lib.rs b/schemsearch_faster/src/lib.rs index c52cd71..bc386b0 100644 --- a/schemsearch_faster/src/lib.rs +++ b/schemsearch_faster/src/lib.rs @@ -45,25 +45,26 @@ pub fn unwrap_palette(palette: &Map) -> Vec { } #[allow(unused_imports)] +#[cfg(test)] mod tests { use std::path::{Path, PathBuf}; use schemsearch_files::Schematic; use crate::{convert_to_search_space, unwrap_palette}; - #[test] + //#[test] pub fn test() { let schematic = Schematic::load(&PathBuf::from("../tests/Pattern.schem")).unwrap(); dbg!(convert_to_search_space(&schematic, &unwrap_palette(&schematic.palette))); } - #[test] + //#[test] pub fn test_2() { let schematic = Schematic::load(&PathBuf::from("../tests/Pattern.schem")).unwrap(); let schematic2 = Schematic::load(&PathBuf::from("../tests/Random.schem")).unwrap(); println!("{:?}", convert_to_search_space(&schematic2, &unwrap_palette(&schematic.palette))); } - #[test] + //#[test] pub fn test_big() { let schematic = Schematic::load(&PathBuf::from("../tests/endstone.schem")).unwrap(); let schematic2 = Schematic::load(&PathBuf::from("../tests/simple.schem")).unwrap();