Skip to content

Commit 50edbd2

Browse files
Merge branch 'main' into directory_writer
2 parents 1ed8743 + dbe86a2 commit 50edbd2

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.gitpod.dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
FROM gitpod/workspace-full-vnc
1+
FROM gitpod/workspace-base:2023-10-04-18-52-46
22

3-
RUN sudo apt-get update \
4-
&& sudo apt-get install julia -y
3+
ENV JULIA_TMP="julia_tmp.tar.gz"
4+
5+
RUN test ! -e "${JULIA_TMP}" \
6+
&& curl https://julialang-s3.julialang.org/bin/linux/x64/1.9/julia-1.9.3-linux-x86_64.tar.gz -sSf -o "${JULIA_TMP}" \
7+
&& tar zxvf ${JULIA_TMP} \
8+
&& rm ${JULIA_TMP} \
9+
&& echo "export PATH=${HOME}/julia-1.9.3/bin/:\$PATH" >> ~/.bashrc

test/math.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ using TheAlgorithms.Math
5959
@test_throws DomainError area_heron_triangle(-1, -2, 1)
6060
@test_throws DomainError area_heron_triangle(1, -2, 1)
6161
@test_throws DomainError area_heron_triangle(-1, 2, 1)
62+
@test_throws DomainError area_heron_triangle(1, 1, 3)
63+
@test_throws DomainError area_heron_triangle(1, 3, 1)
64+
@test_throws DomainError area_heron_triangle(3, 1, 1)
6265

6366
@test area_parallelogram(10, 20) == 200
6467
@test_throws DomainError area_parallelogram(-1, -2)

0 commit comments

Comments
 (0)