fix(tests): don't be too repetitive about test_
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
b31e46487a
commit
8757b394d1
1 changed files with 2 additions and 2 deletions
|
@ -72,14 +72,14 @@ macro_rules! test_sample {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_part_1() {
|
fn part_1() {
|
||||||
let path = $day_struct::get_sample(1);
|
let path = $day_struct::get_sample(1);
|
||||||
let mut day = $day_struct::new(path);
|
let mut day = $day_struct::new(path);
|
||||||
assert_eq!(day.part_1(), $part_1);
|
assert_eq!(day.part_1(), $part_1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_part_2() {
|
fn part_2() {
|
||||||
let path = $day_struct::get_sample(2);
|
let path = $day_struct::get_sample(2);
|
||||||
let mut day = $day_struct::new(path);
|
let mut day = $day_struct::new(path);
|
||||||
assert_eq!(day.part_2(), $part_2);
|
assert_eq!(day.part_2(), $part_2);
|
||||||
|
|
Loading…
Reference in a new issue