Add elisp/hello-world

This commit is contained in:
dwrz
2019-01-06 21:13:16 +00:00
commit 931b7618a4
3 changed files with 51 additions and 0 deletions
+21
View File
@@ -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.
+15
View File
@@ -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
+15
View File
@@ -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