Skip to content

Commit

Permalink
Chore: Just don't run slow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshleaves committed Mar 19, 2024
1 parent bcc6256 commit 2c184ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"search.exclude": {
"inputs/year_*/day_*_input": true
}
}
11 changes: 4 additions & 7 deletions src/year_2016.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ pub fn solve(day: u8, part: u8, input: impl Into<String>) -> Option<String> {
#[cfg(test)]
mod tests {
use super::*;
use std::env;

#[test]
fn day_01() {
Expand Down Expand Up @@ -72,12 +71,11 @@ mod tests {
}

#[test]
#[ignore = "Too slow for CI"]
fn day_05() {
let input = include_str!("../inputs/year_2016/day_05_input");
assert_eq!(day_05::day_05_v1(input), "4543c154");
if env::var("CI").is_err() {
assert_eq!(day_05::day_05_v2(input), "1050cbbd");
}
assert_eq!(day_05::day_05_v2(input), "1050cbbd");
}

#[test]
Expand Down Expand Up @@ -122,12 +120,11 @@ mod tests {
}

#[test]
#[ignore = "Too slow for CI"]
fn day_11() {
let input = include_str!("../inputs/year_2016/day_11_input");
assert_eq!(day_11::day_11_v1(input), 47);
if env::var("CI").is_err() {
assert_eq!(day_11::day_11_v2(input), 71);
}
assert_eq!(day_11::day_11_v2(input), 71);
}

#[test]
Expand Down

0 comments on commit 2c184ad

Please sign in to comment.