Julio Biason
3 years ago
6 changed files with 122 additions and 0 deletions
@ -0,0 +1,25 @@
|
||||
{ |
||||
"blurb": "The classical introductory exercise. Just say \"Hello, World!\"", |
||||
"authors": [ |
||||
"arguello" |
||||
], |
||||
"contributors": [ |
||||
"benreyn", |
||||
"mbertheau", |
||||
"PurityControl", |
||||
"yurrriq" |
||||
], |
||||
"files": { |
||||
"solution": [ |
||||
"hello-world.rkt" |
||||
], |
||||
"test": [ |
||||
"hello-world-test.rkt" |
||||
], |
||||
"example": [ |
||||
".meta/example.rkt" |
||||
] |
||||
}, |
||||
"source": "This is an exercise to introduce users to using Exercism", |
||||
"source_url": "http://en.wikipedia.org/wiki/%22Hello,_world!%22_program" |
||||
} |
@ -0,0 +1 @@
|
||||
{"track":"racket","exercise":"hello-world","id":"f0da42f150134b3189c52ad16b42f84e","url":"https://exercism.org/tracks/racket/exercises/hello-world","handle":"JBiason","is_requester":true,"auto_approve":false} |
@ -0,0 +1,39 @@
|
||||
# Help |
||||
|
||||
## Running the tests |
||||
|
||||
To run the test through DrRacket, simply open the test file and click the 'Run' button in the upper right. |
||||
|
||||
To run the test from the command line, run the test from the exercise directory with the following command: |
||||
|
||||
``` |
||||
raco test <exercise>-test.rkt |
||||
``` |
||||
|
||||
where `<exercise>` should be replaced with the exercise's slug. |
||||
|
||||
## Submitting your solution |
||||
|
||||
You can submit your solution using the `exercism submit hello-world.rkt` command. |
||||
This command will upload your solution to the Exercism website and print the solution page's URL. |
||||
|
||||
It's possible to submit an incomplete solution which allows you to: |
||||
|
||||
- See how others have completed the exercise |
||||
- Request help from a mentor |
||||
|
||||
## Need to get help? |
||||
|
||||
If you'd like help solving the exercise, check the following pages: |
||||
|
||||
- The [Racket track's documentation](https://exercism.org/docs/tracks/racket) |
||||
- [Exercism's support channel on gitter](https://gitter.im/exercism/support) |
||||
- The [Frequently Asked Questions](https://exercism.org/docs/using/faqs) |
||||
|
||||
Should those resources not suffice, you could submit your (incomplete) solution to request mentoring. |
||||
|
||||
To get help if you're having trouble, you can use one of the following resources: |
||||
|
||||
- [The Racket Reference](http://docs.racket-lang.org/reference/index.html) |
||||
- [/r/racket](https://www.reddit.com/r/racket) is the Racket subreddit. |
||||
- [StackOverflow](http://stackoverflow.com/questions/tagged/racket) can be used to search for your problem and see if it has been answered already. You can also ask and answer questions. |
@ -0,0 +1,37 @@
|
||||
# Hello World |
||||
|
||||
Welcome to Hello World on Exercism's Racket Track. |
||||
If you need help running the tests or submitting your code, check out `HELP.md`. |
||||
|
||||
## Instructions |
||||
|
||||
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 |
||||
|
||||
### Created by |
||||
|
||||
- @arguello |
||||
|
||||
### Contributed to by |
||||
|
||||
- @benreyn |
||||
- @mbertheau |
||||
- @PurityControl |
||||
- @yurrriq |
||||
|
||||
### Based on |
||||
|
||||
This is an exercise to introduce users to using Exercism - http://en.wikipedia.org/wiki/%22Hello,_world!%22_program |
@ -0,0 +1,14 @@
|
||||
#lang racket |
||||
|
||||
(require "hello-world.rkt") |
||||
|
||||
(module+ test |
||||
(require rackunit rackunit/text-ui) |
||||
|
||||
(define suite |
||||
(test-suite |
||||
"hello world tests" |
||||
|
||||
(test-equal? "returns Hello, World!" (hello) "Hello, World!"))) |
||||
|
||||
(run-tests suite)) |
Loading…
Reference in new issue