1
0
Fork 0

fix(tests): don't be too repetitive about test_

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2023-12-04 10:58:28 +01:00
parent b31e46487a
commit 8757b394d1
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -72,14 +72,14 @@ macro_rules! test_sample {
use super::*;
#[test]
fn test_part_1() {
fn part_1() {
let path = $day_struct::get_sample(1);
let mut day = $day_struct::new(path);
assert_eq!(day.part_1(), $part_1);
}
#[test]
fn test_part_2() {
fn part_2() {
let path = $day_struct::get_sample(2);
let mut day = $day_struct::new(path);
assert_eq!(day.part_2(), $part_2);