Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodesdev committed Jun 6, 2024
1 parent f940865 commit d734744
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions challenges/tests.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit d734744

Please sign in to comment.