Skip to content

Commit

Permalink
Add stub test module
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Martin committed Nov 23, 2023
1 parent 1581dde commit 81b1407
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions day1/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@ impl<T: std::io::Read> TryFrom<BufReader<T>> for Solution {
Ok(solution)
}
}

#[cfg(test)]
mod test {
#[test]
fn stub() {
assert_eq!(1 + 1, 2);
}
}
7 changes: 7 additions & 0 deletions template/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ impl<T: std::io::Read> TryFrom<BufReader<T>> for Solution {
Ok(solution)
}
}
#[cfg(test)]
mod test {
#[test]
fn stub() {
assert_eq!(1 + 1, 2);
}
}

0 comments on commit 81b1407

Please sign in to comment.