File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed
Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import ArgumentParser
44let allChallenges : [ any AdventDay ] = [
55 Day01 ( ) ,
66 Day02 ( ) ,
7+ Day03 ( ) ,
78]
89
910@main
Original file line number Diff line number Diff line change 1+ import Algorithms
2+
3+ struct Day03 : AdventDay {
4+ // Save your data in a corresponding text file in the `Data` directory.
5+ var data : String
6+
7+ // add here any computed values useful for the challenge
8+
9+ func part1( ) -> Int {
10+ 0
11+ }
12+
13+ func part2( ) -> Int {
14+ 0
15+ }
16+ }
Original file line number Diff line number Diff line change 1+ import Testing
2+
3+ @testable import aoc
4+
5+ @Suite ( " Day03 " )
6+ struct Day03Tests {
7+ let testData = """
8+
9+ """
10+
11+ @Test ( " part1 " )
12+ func testPart1( ) async throws {
13+ let challenge = Day03 ( data: testData)
14+ #expect( challenge. part1 ( ) == 0 )
15+ }
16+
17+ @Test ( " part2 " )
18+ func testPart2( ) async throws {
19+ let challenge = Day03 ( data: testData)
20+ #expect( challenge. part2 ( ) == 0 )
21+ }
22+ }
You can’t perform that action at this time.
0 commit comments