Skip to content

Commit

Permalink
Add missing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dancarroll committed Dec 14, 2024
1 parent a9d72a3 commit 67e891f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion bin/day14.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ Future<void> main(List<String> arguments) async {
day: Day.day14,
part1: part1.calculate,
part2: part2.calculate,
runSample: false,
);
}
7 changes: 7 additions & 0 deletions test/day14_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:aoc_2024/lib.dart';
import 'package:aoc_2024/day14/part_1.dart' as part1;
import 'package:aoc_2024/day14/part_2.dart' as part2;
import 'package:test/test.dart';

void main() {
Expand All @@ -12,6 +13,8 @@ void main() {
test('part1', () async {
expect(await part1.calculate(file), 12);
});

// The sample data doesn't work for part 2.
});

group('real data', tags: 'real-data', () {
Expand All @@ -21,5 +24,9 @@ void main() {
test('part1', () async {
expect(await part1.calculate(file), 228410028);
});

test('part2', () async {
expect(await part2.calculate(file), 8258);
});
});
}

0 comments on commit 67e891f

Please sign in to comment.