commit 0a06df710d485bc54803ce301180c720763a4eab parent 9ca143d06a06f9092ca102a7fa2f1543f356f75a Author: Andrew Laack <andrew@laack.co> Date: Wed, 2 Sep 2026 13:04:53 -0500 Fixed test Diffstat:
| M | learning/Containerfile | | | 18 | ++---------------- |
| M | learning/test/test_rendering.ml | | | 2 | +- |
2 files changed, 3 insertions(+), 17 deletions(-)
diff --git a/learning/Containerfile b/learning/Containerfile @@ -1,17 +1,3 @@ -FROM ocaml/opam:ubuntu-25.04-ocaml-5.5 +FROM alpine:latest -RUN sudo mkdir /app - -RUN sudo apt-get update && sudo apt-get install -y libev-dev libgmp-dev - -COPY . /app - -WORKDIR /app - -RUN opam update && opam install --deps-only -y . && opam install dune - -RUN sudo chown -R opam /app - -RUN /home/opam/.opam/5.5/bin/dune build - -ENTRYPOINT ["/home/opam/.opam/5.5/bin/dune" "exec" "learning"] +COPY ./_build/install/default/bin/learning /app diff --git a/learning/test/test_rendering.ml b/learning/test/test_rendering.ml @@ -2,7 +2,7 @@ open Learning -let courses = Array.to_list Render.get_course_array +let courses = Array.to_list (Render.get_course_array ()) let expected_courses = [ "course_0"; "course_1"; "course_empty" ] let course_0_page_0 = Render.render_page "course_0" "0_example.sl" let course_0_page_1 = Render.render_page "course_0" "1_example.sl"