commit 931b7618a4964d77652c294cf527db890cb4be61
Author: dwrz <dwrz@dwrz.net>
Date: Sun, 6 Jan 2019 21:13:09 +0000
Add elisp/hello-world
Diffstat:
3 files changed, 51 insertions(+), 0 deletions(-)
diff --git a/elisp/hello-world/README.md b/elisp/hello-world/README.md
@@ -0,0 +1,21 @@
+# Hello World
+
+The classical introductory exercise. Just say "Hello, World!".
+
+["Hello, World!"](http://en.wikipedia.org/wiki/%22Hello,_world!%22_program) is
+the traditional first program for beginning programming in a new language
+or environment.
+
+The objectives are simple:
+
+- Write a function that returns the string "Hello, World!".
+- Run the test suite and make sure that it succeeds.
+- Submit your solution and check it at the website.
+
+If everything goes well, you will be ready to fetch your first real exercise.
+## Source
+
+This is an exercise to introduce users to using Exercism [http://en.wikipedia.org/wiki/%22Hello,_world!%22_program](http://en.wikipedia.org/wiki/%22Hello,_world!%22_program)
+
+## Submitting Incomplete Solutions
+It's possible to submit an incomplete solution so you can see how others have completed the exercise.
diff --git a/elisp/hello-world/hello-world-test.el b/elisp/hello-world/hello-world-test.el
@@ -0,0 +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 hello-world-test ()
+ (should (equal (hello) "Hello, World!")))
+
+(provide 'hello-world-test)
+
+;;; hello-world-test.el ends here
diff --git a/elisp/hello-world/hello-world.el b/elisp/hello-world/hello-world.el
@@ -0,0 +1,15 @@
+;;; hello-world.el --- Hello World Exercise (exercism)
+
+;;; Commentary:
+;; This package provides a Hello World function.
+
+;;; Code:
+
+
+(provide 'hello-world)
+
+(defun hello ()
+ "Hello, World!"
+ )
+
+;;; hello-world.el ends here