Removed uneeded dayxx.rs file
This commit is contained in:
		@@ -1,66 +0,0 @@
 | 
				
			|||||||
use super::Solution;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
pub struct DayXX {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
impl Solution for DayXX {
 | 
					 | 
				
			||||||
    fn part1(
 | 
					 | 
				
			||||||
        &self,
 | 
					 | 
				
			||||||
        _input: &mut Vec<String>,
 | 
					 | 
				
			||||||
    ) -> Result<Box<dyn std::fmt::Display>, Box<dyn std::error::Error>> {
 | 
					 | 
				
			||||||
        Ok(Box::new("Ready"))
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    fn part2(
 | 
					 | 
				
			||||||
        &self,
 | 
					 | 
				
			||||||
        _input: &mut Vec<String>,
 | 
					 | 
				
			||||||
    ) -> Result<Box<dyn std::fmt::Display>, Box<dyn std::error::Error>> {
 | 
					 | 
				
			||||||
        Ok(Box::new("Ready"))
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    fn get_day(&self) -> u8 {
 | 
					 | 
				
			||||||
        0
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
impl DayXX {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/// Test from puzzle input
 | 
					 | 
				
			||||||
#[cfg(test)]
 | 
					 | 
				
			||||||
mod test {
 | 
					 | 
				
			||||||
    use super::*;
 | 
					 | 
				
			||||||
    use crate::*;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    #[test]
 | 
					 | 
				
			||||||
    fn part1() {
 | 
					 | 
				
			||||||
        let challenge = dayXX::DayXX {};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        //Complete the Challenge
 | 
					 | 
				
			||||||
        let answer = challenge
 | 
					 | 
				
			||||||
            .part1(
 | 
					 | 
				
			||||||
                utils::get_input(challenge.get_day(), utils::InputType::Test1)
 | 
					 | 
				
			||||||
                    .unwrap()
 | 
					 | 
				
			||||||
                    .as_mut(),
 | 
					 | 
				
			||||||
            )
 | 
					 | 
				
			||||||
            .unwrap()
 | 
					 | 
				
			||||||
            .to_string();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        assert_eq!(answer, "Ready");
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    #[test]
 | 
					 | 
				
			||||||
    fn part2() {
 | 
					 | 
				
			||||||
        let challenge = dayXX::DayXX {};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        //Complete the Challenge
 | 
					 | 
				
			||||||
        let answer = challenge
 | 
					 | 
				
			||||||
            .part2(
 | 
					 | 
				
			||||||
                utils::get_input(challenge.get_day(), utils::InputType::Test2)
 | 
					 | 
				
			||||||
                    .unwrap()
 | 
					 | 
				
			||||||
                    .as_mut(),
 | 
					 | 
				
			||||||
            )
 | 
					 | 
				
			||||||
            .unwrap()
 | 
					 | 
				
			||||||
            .to_string();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        assert_eq!(answer, "Ready");
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user