From e1a1e50eb0fb1a8e5b97dee21bff60f59ef6a412 Mon Sep 17 00:00:00 2001 From: Kazi Abu Rousan Date: Fri, 24 Nov 2023 22:56:58 +0530 Subject: [PATCH] test_check --- src/cosmic.jl | 27 +++++++++++++++++++++++++-- src/test_f.jl | 1 + test/runtests.jl | 3 ++- 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 src/test_f.jl diff --git a/src/cosmic.jl b/src/cosmic.jl index 981eb31..e286745 100644 --- a/src/cosmic.jl +++ b/src/cosmic.jl @@ -1,5 +1,28 @@ module cosmic -# Write your package code here. +include("test_f.jl") -end +export my_f + + + + + + + + + + + + + + + + + + + + + + +end# module end diff --git a/src/test_f.jl b/src/test_f.jl new file mode 100644 index 0000000..a62f716 --- /dev/null +++ b/src/test_f.jl @@ -0,0 +1 @@ +my_f(x,y) = 2x+3y \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index 7e57ff4..40f699d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,5 +2,6 @@ using cosmic using Test @testset "cosmic.jl" begin - # Write your tests here. + @test my_f(2,1) == 7 + @test my_f(2,3) == 13 end