Skip to content

Commit

Permalink
Day 05: Solve part 1 and 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nihas101 committed Dec 5, 2023
1 parent 2912353 commit 21e07a5
Show file tree
Hide file tree
Showing 10 changed files with 136 additions and 1,469 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/clojure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
run: lein deps
- name: Run tests
run: lein test
- name: Run tests (examples only)
run: lein test :only-examples
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ pom.xml.asc
.clj-kondo/
.lsp/
.eastwood
.calva/
.calva/
resources/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A repository containing my solutions to the [Advent of code 2023](https://advent
The solutions are written in [Clojure](https://clojure.org). [Leningen](https://leiningen.org/) can be used to execute the code within this project to e.g. run tests on the solutions.

## Solutions
The solutions are located in `src/advent_of_code_2023/`. The solutions for day XY are found in file `dayXY.clj`. The corresponding tests are found in files named `test/advent_of_code_2023/dayXY_test.clj`. Input files are stored in `resources/dayXY.txt`
The solutions are located in `src/advent_of_code_2023/`. The solutions for day XY are found in file `dayXY.clj`. The corresponding tests are found in files named `test/advent_of_code_2023/dayXY_test.clj`.


# Using This Repository as a Base
Expand Down
4 changes: 3 additions & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.11.1"]]
:repl-options {:init-ns advent-of-code-2023.core})
:repl-options {:init-ns advent-of-code-2023.core}
:test-selectors {:only-examples (fn [{:keys [name]}]
(clojure.string/includes? (str name) "example"))})
Loading

0 comments on commit 21e07a5

Please sign in to comment.