The classical introductory exercise. Just say "Hello, World!".
"Hello, World!" is the traditional first program for beginning programming in a new language or environment.
The objectives are simple:
If everything goes well, you will be ready to fetch your first real exercise.
srccontains your solution to the exercise
speccontains the tests to run for the exercise
If you're in the right directory (i.e. the one containing
spec), you can run the tests for that exercise by running
$ pwd /Users/johndoe/Code/exercism/crystal/hello-world $ ls GETTING_STARTED.md README.md spec src $ crystal spec
This will run all of the test files in the
In each test file, all but the first test have been skipped.
Once you get a test passing, you can unskip the next one by changing
Be sure to submit the source file in the
src directory when submitting your solution:
$ exercism submit src/hello_world.cr