From 4cc8d80d20e4b6bfb3dd4c87ced084c0b3d4ab10 Mon Sep 17 00:00:00 2001 From: DustInDark Date: Thu, 7 Apr 2022 02:30:15 +0900 Subject: [PATCH] fixed test yaml file path --- src/options/level_tuning.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/options/level_tuning.rs b/src/options/level_tuning.rs index 0281cb99..869e9b15 100644 --- a/src/options/level_tuning.rs +++ b/src/options/level_tuning.rs @@ -146,7 +146,7 @@ mod tests { level: high "#; - let path = "test_files/rules/level_tuning.txt"; + let path = "test_files/rules/level_tuning_test.yml"; let mut file = File::create(path).unwrap(); let buf = rule_str.as_bytes(); file.write_all(buf).unwrap(); @@ -165,13 +165,10 @@ mod tests { }, ) .ok(); - println!("{:?}", parser); for (_filepath, yaml) in parser.files { - println!(); if yaml["id"].as_str().unwrap_or(&String::default()) == "12345678-1234-1234-1234-123456789012" { - println!("{}", _filepath); assert_eq!("high", yaml["level"].as_str().unwrap()); } }