From d734744f103aa746e620c18f5cc0b8f967b5632f Mon Sep 17 00:00:00 2001 From: dcodesdev <101001810+dcodesdev@users.noreply.github.com> Date: Thu, 6 Jun 2024 11:41:53 +0300 Subject: [PATCH] tests fix --- challenges/tests.rs | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/challenges/tests.rs b/challenges/tests.rs index 68253c8..067f6ec 100644 --- a/challenges/tests.rs +++ b/challenges/tests.rs @@ -1,27 +1,25 @@ -use serde::Deserialize; - -#[derive(Deserialize)] -enum Difficulty { - BEGINNER, - EASY, - MEDIUM, - HARD, - ADVANCED, -} - -#[derive(Deserialize)] -#[allow(non_camel_case_types)] -enum Track { - RUST_BASICS, - CONTROL_FLOW, -} - #[cfg(test)] mod tests { - use super::*; use chrono::NaiveDateTime; + use serde::Deserialize; use std::{fs, path::PathBuf}; + #[derive(Deserialize)] + enum Difficulty { + BEGINNER, + EASY, + MEDIUM, + HARD, + ADVANCED, + } + + #[derive(Deserialize)] + #[allow(non_camel_case_types)] + enum Track { + RUST_BASICS, + CONTROL_FLOW, + } + #[derive(Deserialize)] struct Package { pub name: String,