-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: swap assert test parameters
Keep this convention assert_eq!(actual, expected)
- Loading branch information
Showing
49 changed files
with
49 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day01 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day01 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day02 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day02 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day03 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day03 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day04 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day04 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day05 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day05 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day06 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day07 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day07 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day08 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day08 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day09 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day09 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day10 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day10 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day11 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day11 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day12 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day12 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day13 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day13 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day14 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day14 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day15 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day15 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day16 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day16 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day17 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day17 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day18 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day18 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day19 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day19 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day20 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day20 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day21 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day21 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day22 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day22 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day23 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day23 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day24 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day24 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day25 { | |
|
||
#[test] | ||
fn test_part1() { | ||
assert_eq!(0, part1()); | ||
assert_eq!(part1(), 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ mod day25 { | |
|
||
#[test] | ||
fn test_part2() { | ||
assert_eq!(0, part2()); | ||
assert_eq!(part2(), 0); | ||
} | ||
} |