Skip to content

Commit

Permalink
throw on error
Browse files Browse the repository at this point in the history
  • Loading branch information
narimiran committed Nov 26, 2023
1 parent 4d1d983 commit 7a971e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
fail-fast: false

runs-on: ${{ matrix.os }}

Expand All @@ -23,9 +24,7 @@ jobs:
- name: Install Clojure
uses: DeLaGuardo/setup-clojure@12.1
with:
# # bb: '1.0.165'
cli: '1.10.3.1013'
# lein: '2.10.0'

- name: Cache clojure dependencies
uses: actions/cache@v3
Expand All @@ -39,4 +38,4 @@ jobs:
restore-keys: cljdeps-

- name: Test solutions
run: clojure -M clojure/tests/solutions_tests.clj
run: clojure -M clojure/tests/solutions_tests.clj
4 changes: 2 additions & 2 deletions clojure/tests/solutions_tests.clj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"██ ████ ██ ██████ ██ ██ ██ ██ ██ ████ "))


(check-day 1 [24000 45001] [70369 203002])
(check-day 1 [24000 45000] [70369 203002])
(check-day 2 [15 12] [13005 11373])
(check-day 3 [157 70] [8515 2434])
(check-day 4 [2 4] [569 936])
Expand All @@ -55,7 +55,7 @@
(check-day 16 [1651 1707] [1880 2520])
(check-day 17 [3068 1514285714288] [3232 1585632183915])
(check-day 18 [64 58] [3326 1996])
(check-day 19 [33 3472] [994 15961])
(check-day 19 [33 3472] [994 15960])
(check-day 20 [3 1623178306] [5904 8332585833851])
(check-day 21 [152 301] [63119856257960 3006709232464])
(check-day 22 [8048 8048] [13566 11451]) ; hardcoded for real input --> wrong test results
Expand Down

0 comments on commit 7a971e1

Please sign in to comment.