Skip to content

Commit

Permalink
Simplify hello-world exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
benreyn committed Oct 25, 2018
1 parent 5f45863 commit a3c743f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions exercises/hello-world/example.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

(provide hello)

(define (hello [name "World"])
(string-append "Hello, " name "!"))
(define (hello)
"Hello, World!")
3 changes: 1 addition & 2 deletions exercises/hello-world/hello-world-test.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
(test-suite
"hello world tests"

(test-equal? "no arg returns Hello, World!" (hello) "Hello, World!")
(test-equal? "with arg returns Hello, arg!" (hello "exercism") "Hello, exercism!")))
(test-equal? "returns Hello, World!" (hello) "Hello, World!")))

(run-tests suite))

0 comments on commit a3c743f

Please sign in to comment.