Skip to content

Commit

Permalink
Add a minimal example to the generated package (#311)
Browse files Browse the repository at this point in the history
Co-authored-by: Abel Soares Siqueira <[email protected]>
  • Loading branch information
lyashevska and abelsiqueira committed Jul 4, 2024
1 parent 6c16e11 commit 0b87aa5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion template/src/{{ PackageName }}.jl.jinja
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
module {{ PackageName }}

# Write your package code here.
"""
hi = hello_world()
A simple function to return "Hello, World!"
"""
function hello_world()
return "Hello, World!"
end

end
2 changes: 1 addition & 1 deletion template/test/runtests.jl.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ using {{ PackageName }}
using Test

@testset "{{ PackageName }}.jl" begin
# Write your tests here.
@test {{ PackageName }}.hello_world() == "Hello, World!"
end

0 comments on commit 0b87aa5

Please sign in to comment.