File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- ckczppom
1
+ ckczppom
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pub fn run(input: aoc.Input) !aoc.Output {
11
11
var part2found : bool = false ;
12
12
13
13
var input_hash = Md5 .init (.{});
14
- input_hash .update (input );
14
+ input_hash .update (input [0 .. if ( input [ input . len -1 ] == ' \n ' ) input . len - 1 else input . len ] );
15
15
while (true ) {
16
16
var buf align (16 ) = [_ ]u8 {undefined } ** 8 ;
17
17
var out align (16 ) = [_ ]u8 {undefined } ** 16 ;
@@ -37,6 +37,6 @@ pub fn run(input: aoc.Input) !aoc.Output {
37
37
38
38
test "2015-4" {
39
39
// currently disabled because they're so slow
40
- try aoc .testPart1 (609043 , run ("abcdef" ));
40
+ try aoc .testPart1 (609043 , run ("abcdef\n " ));
41
41
try aoc .testPart1 (1048970 , run ("pqrstuv" ));
42
42
}
You can’t perform that action at this time.
0 commit comments