Skip to content

Commit ee07e52

Browse files
committed
hello-world: Update to fit the new canonical data
1 parent a514f6c commit ee07e52

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

config.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"slug": "hello-world",
99
"difficulty": 1,
1010
"topics": [
11-
"strings",
12-
"string interpolation"
11+
"strings"
1312
]
1413
},
1514
{

exercises/hello-world/example.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
function hello(name::AbstractString="World")
2-
return "Hello, $(name)!"
1+
function hello()
2+
return "Hello, World!"
33
end

exercises/hello-world/runtests.jl

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ using Base.Test
22

33
include("hello-world.jl")
44

5-
@testset "no name" begin
5+
@testset "Say Hi!" begin
66
@test hello() == "Hello, World!"
77
end
8-
9-
@testset "names" begin
10-
@test hello("Alice") == "Hello, Alice!"
11-
@test hello("Bob") == "Hello, Bob!"
12-
end

0 commit comments

Comments
 (0)