Skip to content

Commit

Permalink
Merge pull request JuliaLang#47 from SaschaMann/smann/hello-world-update
Browse files Browse the repository at this point in the history
hello-world: Update to fit the new canonical data
  • Loading branch information
SaschaMann authored Feb 20, 2017
2 parents a514f6c + ee07e52 commit 1669be3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
3 changes: 1 addition & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"slug": "hello-world",
"difficulty": 1,
"topics": [
"strings",
"string interpolation"
"strings"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions exercises/hello-world/example.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function hello(name::AbstractString="World")
return "Hello, $(name)!"
function hello()
return "Hello, World!"
end
7 changes: 1 addition & 6 deletions exercises/hello-world/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ using Base.Test

include("hello-world.jl")

@testset "no name" begin
@testset "Say Hi!" begin
@test hello() == "Hello, World!"
end

@testset "names" begin
@test hello("Alice") == "Hello, Alice!"
@test hello("Bob") == "Hello, Bob!"
end

0 comments on commit 1669be3

Please sign in to comment.