From b2e54b76513f9d524809f64a57413b3be04a73ee Mon Sep 17 00:00:00 2001 From: Benjamin Reynolds Date: Sat, 28 Apr 2018 22:31:49 -0500 Subject: [PATCH] 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]: https://github.com/exercism/problem-specifications/issues/520 --- exercises/hello-world/example.el | 6 ++---- exercises/hello-world/hello-world-test.el | 7 ++----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/exercises/hello-world/example.el b/exercises/hello-world/example.el index f3b206e8..3a1b173e 100644 --- a/exercises/hello-world/example.el +++ b/exercises/hello-world/example.el @@ -4,10 +4,8 @@ ;;; Code: -(defun hello (&optional name) - "Say hello, optionally to NAME." - (let ((greetee (or name "World"))) - (concat "Hello, " greetee "!"))) +(defun hello () + ("Hello, World!")) (provide 'hello-world) ;;; hello-world.el ends here diff --git a/exercises/hello-world/hello-world-test.el b/exercises/hello-world/hello-world-test.el index cceb0f4c..d663b56f 100644 --- a/exercises/hello-world/hello-world-test.el +++ b/exercises/hello-world/hello-world-test.el @@ -1,18 +1,15 @@ ;;; hello-world-test.el --- Tests for Hello World (exercism) ;;; Commentary: +;; Common test data version: 1.1.0 be3ae66 ;;; Code: (load-file "hello-world.el") -(ert-deftest no-args () +(ert-deftest hello-world-test () (should (equal (hello) "Hello, World!"))) -(ert-deftest with-args () - (should (equal (hello "Emacs") "Hello, Emacs!")) - (should (equal (hello "Exercism") "Hello, Exercism!"))) - (provide 'hello-world-test) ;;; hello-world-test.el ends here