diff --git a/template/src/{{ PackageName }}.jl.jinja b/template/src/{{ PackageName }}.jl.jinja index 9a72efc3..d415b545 100644 --- a/template/src/{{ PackageName }}.jl.jinja +++ b/template/src/{{ PackageName }}.jl.jinja @@ -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 diff --git a/template/test/runtests.jl.jinja b/template/test/runtests.jl.jinja index 418a7a18..30041602 100644 --- a/template/test/runtests.jl.jinja +++ b/template/test/runtests.jl.jinja @@ -2,5 +2,5 @@ using {{ PackageName }} using Test @testset "{{ PackageName }}.jl" begin - # Write your tests here. + @test {{ PackageName }}.hello_world() == "Hello, World!" end