diff options
| author | DJ O'Leary <dijitol@proton.me> | 2026-06-27 00:11:43 +0200 |
|---|---|---|
| committer | DJ O'Leary <dijitol@proton.me> | 2026-06-27 00:11:43 +0200 |
| commit | 976048a85403fbb0751c34fa42703a3c47f6e918 (patch) | |
| tree | 46e321d8120c45e318ead66f60165b0b854c85a1 /ocaml/test | |
| parent | 6d8fb621d1e93b83786890d6d9cb6f0d8defa8ae (diff) | |
refactor!: change repo directory structure for ocaml
Diffstat (limited to 'ocaml/test')
15 files changed, 42 insertions, 38 deletions
diff --git a/ocaml/test/application/dune b/ocaml/test/application/dune deleted file mode 100644 index 7a90f81..0000000 --- a/ocaml/test/application/dune +++ /dev/null @@ -1,9 +0,0 @@ -(tests - (names - test_d01p01 - test_d01p02 - test_d04p01) - (libraries - application - domain - alcotest)) diff --git a/ocaml/test/infrastructure/dune b/ocaml/test/infrastructure/dune deleted file mode 100644 index 5d493d9..0000000 --- a/ocaml/test/infrastructure/dune +++ /dev/null @@ -1,8 +0,0 @@ -(tests - (names - test_example) - (libraries - application - domain - infrastructure - alcotest)) diff --git a/ocaml/test/infrastructure/test_example.ml b/ocaml/test/infrastructure/test_example.ml deleted file mode 100644 index e69de29..0000000 --- a/ocaml/test/infrastructure/test_example.ml +++ /dev/null diff --git a/ocaml/test/presentation/dune b/ocaml/test/presentation/dune deleted file mode 100644 index e34e56f..0000000 --- a/ocaml/test/presentation/dune +++ /dev/null @@ -1,11 +0,0 @@ -(tests - (names - test_example) - (libraries - application - domain - infrastructure - presentation - alcotest - qcheck-core - qcheck-alcotest)) diff --git a/ocaml/test/presentation/test_example.ml b/ocaml/test/presentation/test_example.ml deleted file mode 100644 index e69de29..0000000 --- a/ocaml/test/presentation/test_example.ml +++ /dev/null diff --git a/ocaml/test/year2025/day01/part01/dune b/ocaml/test/year2025/day01/part01/dune new file mode 100644 index 0000000..52cff9d --- /dev/null +++ b/ocaml/test/year2025/day01/part01/dune @@ -0,0 +1,11 @@ +(tests + (names + test_dial + test_solver) + (libraries + year2025 + alcotest + qcheck-core + qcheck-alcotest) + (action (run %{test} -e)) + (modes byte exe)) diff --git a/ocaml/test/domain/test_d01p01.ml b/ocaml/test/year2025/day01/part01/test_dial.ml index 23404f6..2175bee 100644 --- a/ocaml/test/domain/test_d01p01.ml +++ b/ocaml/test/year2025/day01/part01/test_dial.ml @@ -1,4 +1,4 @@ -open Domain.D01p01 +open Year2025.Day01.Part01.Dial let test_start () = Alcotest.(check int) "incorrect starting state" 50 (Dial.to_int Dial.start) diff --git a/ocaml/test/application/test_d01p01.ml b/ocaml/test/year2025/day01/part01/test_solver.ml index e57db01..e420ee2 100644 --- a/ocaml/test/application/test_d01p01.ml +++ b/ocaml/test/year2025/day01/part01/test_solver.ml @@ -1,4 +1,4 @@ -open Application.D01p01 +open Year2025.Day01.Part01.Solver let example_data = {|L68 L30 diff --git a/ocaml/test/year2025/day01/part02/dune b/ocaml/test/year2025/day01/part02/dune new file mode 100644 index 0000000..52cff9d --- /dev/null +++ b/ocaml/test/year2025/day01/part02/dune @@ -0,0 +1,11 @@ +(tests + (names + test_dial + test_solver) + (libraries + year2025 + alcotest + qcheck-core + qcheck-alcotest) + (action (run %{test} -e)) + (modes byte exe)) diff --git a/ocaml/test/domain/test_d01p02.ml b/ocaml/test/year2025/day01/part02/test_dial.ml index 98c06c3..2d09635 100644 --- a/ocaml/test/domain/test_d01p02.ml +++ b/ocaml/test/year2025/day01/part02/test_dial.ml @@ -1,4 +1,5 @@ -open Domain.D01p02 +open Year2025.Day01.Part02.Dial +open Year2025.Day01.Part02.Turner let test_start () = Alcotest.(check int) "incorrect starting state" 50 (Dial.to_int Dial.start) diff --git a/ocaml/test/application/test_d01p02.ml b/ocaml/test/year2025/day01/part02/test_solver.ml index bbda035..c4c1123 100644 --- a/ocaml/test/application/test_d01p02.ml +++ b/ocaml/test/year2025/day01/part02/test_solver.ml @@ -1,4 +1,4 @@ -open Application.D01p02 +open Year2025.Day01.Part02.Solver let example_data = {|L68 L30 diff --git a/ocaml/test/year2025/day03/part01/dune b/ocaml/test/year2025/day03/part01/dune new file mode 100644 index 0000000..af1f340 --- /dev/null +++ b/ocaml/test/year2025/day03/part01/dune @@ -0,0 +1,10 @@ +(tests + (names + test_battery_bank) + (libraries + year2025 + alcotest + qcheck-core + qcheck-alcotest) + (action (run %{test} -e)) + (modes byte exe)) diff --git a/ocaml/test/domain/test_d03p01.ml b/ocaml/test/year2025/day03/part01/test_battery_bank.ml index 6a2b3cf..6bfaa53 100644 --- a/ocaml/test/domain/test_d03p01.ml +++ b/ocaml/test/year2025/day03/part01/test_battery_bank.ml @@ -1,4 +1,4 @@ -open Domain.D03p01 +open Year2025.Day03.Part01.Battery_bank let test_highest_joltage have want () = Alcotest.(check int) diff --git a/ocaml/test/domain/dune b/ocaml/test/year2025/day04/part01/dune index 1364288..aeee9b4 100644 --- a/ocaml/test/domain/dune +++ b/ocaml/test/year2025/day04/part01/dune @@ -1,11 +1,10 @@ (tests (names - test_d01p01 - test_d01p02 - test_d03p01) + test_solver) (libraries - domain + year2025 alcotest qcheck-core qcheck-alcotest) + (action (run %{test} -e)) (modes byte exe)) diff --git a/ocaml/test/application/test_d04p01.ml b/ocaml/test/year2025/day04/part01/test_solver.ml index ffbe102..77e33a5 100644 --- a/ocaml/test/application/test_d04p01.ml +++ b/ocaml/test/year2025/day04/part01/test_solver.ml @@ -1,4 +1,4 @@ -open Application.D04p01 +open Year2025.Day04.Part01.Solver let example = {|..@@.@@@@. |
