summaryrefslogtreecommitdiff
path: root/ocaml/test
diff options
context:
space:
mode:
Diffstat (limited to 'ocaml/test')
-rw-r--r--ocaml/test/application/dune9
-rw-r--r--ocaml/test/infrastructure/dune8
-rw-r--r--ocaml/test/infrastructure/test_example.ml0
-rw-r--r--ocaml/test/presentation/dune11
-rw-r--r--ocaml/test/presentation/test_example.ml0
-rw-r--r--ocaml/test/year2025/day01/part01/dune11
-rw-r--r--ocaml/test/year2025/day01/part01/test_dial.ml (renamed from ocaml/test/domain/test_d01p01.ml)2
-rw-r--r--ocaml/test/year2025/day01/part01/test_solver.ml (renamed from ocaml/test/application/test_d01p01.ml)2
-rw-r--r--ocaml/test/year2025/day01/part02/dune11
-rw-r--r--ocaml/test/year2025/day01/part02/test_dial.ml (renamed from ocaml/test/domain/test_d01p02.ml)3
-rw-r--r--ocaml/test/year2025/day01/part02/test_solver.ml (renamed from ocaml/test/application/test_d01p02.ml)2
-rw-r--r--ocaml/test/year2025/day03/part01/dune10
-rw-r--r--ocaml/test/year2025/day03/part01/test_battery_bank.ml (renamed from ocaml/test/domain/test_d03p01.ml)2
-rw-r--r--ocaml/test/year2025/day04/part01/dune (renamed from ocaml/test/domain/dune)7
-rw-r--r--ocaml/test/year2025/day04/part01/test_solver.ml (renamed from ocaml/test/application/test_d04p01.ml)2
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 =
{|..@@.@@@@.