You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command will create the following directory structure relatively to the current working directory:
51
+
```
52
+
input_data
53
+
└── <current_year>
54
+
├── 01_input.txt
55
+
└── 01_test_input.txt
56
+
aoc_solutions
57
+
└── <current_year>
58
+
└── day_05
59
+
├── __init__.py
60
+
└── test_solution.py
61
+
```
62
+
63
+
> [!NOTE]
64
+
> Alternatively you can provide a path to template directory `aoc new-day <day> -t /path/to/template/directory` that will be copied to the new day directory.
65
+
> This can be useful if you already have a template for your solutions. However, by using this option you will
66
+
> lose the ability to run, verify, and submit a challenge from the CLI tool.
67
+
68
+
34
69
#### NEW! Downloading input data
35
70
36
71
Now this template uses [advent-of-code-data](https://github.com/wimglenn/advent-of-code-data) package to download
@@ -55,7 +90,7 @@ Day 0 - Part 1: 1
55
90
Day 0 - Part 2: 55
56
91
```
57
92
58
-
This command will run the solution for the given day using `data/00_input.txt` file and print the answers
93
+
This command will run the solution for the given day using `data/<year>/00_input.txt` file and print the answers
59
94
for both parts.
60
95
61
96
If you want to see the result only for the test data, you can use the `-t/--test-data` flag.
@@ -80,7 +115,8 @@ Day 0 - Part 2: 33
80
115
You can verify your solution by running [pytest](https://github.com/pytest-dev/pytest) tests.
81
116
There is a generic test case for each day that checks both parts of a solution against the correct answer.
82
117
To use it you need to configure correct answers on the test class for a given day.
83
-
118
+
command will run the solution for the given day using `data/00_input.txt` file and print the answers
119
+
for both parts.
84
120
```python
85
121
classTestChallenge(BaseTestChallenge):
86
122
challenge_class = Challenge
@@ -113,7 +149,7 @@ If you don't like the idea of running tests manually, there is a pre-installed [
113
149
package that will run tests for you after each change in the code.
0 commit comments