Skip to content

Commit b2e54b7

Browse files
committed
Update hello world test to v1.1.0
It was determined [upstream] that the hello world excercise should be simplified to always expect a return value of "Hello, World!". [upstream]: exercism/problem-specifications#520
1 parent dcfe99e commit b2e54b7

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

exercises/hello-world/example.el

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
;;; Code:
66

7-
(defun hello (&optional name)
8-
"Say hello, optionally to NAME."
9-
(let ((greetee (or name "World")))
10-
(concat "Hello, " greetee "!")))
7+
(defun hello ()
8+
("Hello, World!"))
119

1210
(provide 'hello-world)
1311
;;; hello-world.el ends here
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
;;; hello-world-test.el --- Tests for Hello World (exercism)
22

33
;;; Commentary:
4+
;; Common test data version: 1.1.0 be3ae66
45

56
;;; Code:
67

78
(load-file "hello-world.el")
89

9-
(ert-deftest no-args ()
10+
(ert-deftest hello-world-test ()
1011
(should (equal (hello) "Hello, World!")))
1112

12-
(ert-deftest with-args ()
13-
(should (equal (hello "Emacs") "Hello, Emacs!"))
14-
(should (equal (hello "Exercism") "Hello, Exercism!")))
15-
1613
(provide 'hello-world-test)
1714

1815
;;; hello-world-test.el ends here

0 commit comments

Comments
 (0)