-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"track":"reasonml","exercise":"hello-world","id":"63e4ac5770674aed91dc0416f45b99e9","url":"https://exercism.io/my/solutions/63e4ac5770674aed91dc0416f45b99e9","handle":"theodesp","is_requester":true,"auto_approve":true} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# 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) | ||
|
||
## Building and testing | ||
You will need the node package manager (npm) installed - download from [here](https://www.npmjs.com/get-npm) | ||
There is one time setup for each exercise, which may take a few minutes: | ||
``` | ||
npm install | ||
``` | ||
|
||
Open two shells, and in the first, start the build process. | ||
``` | ||
npm start | ||
``` | ||
|
||
In the second, start the tests running. | ||
``` | ||
npm test | ||
``` | ||
|
||
As you edit the code, the two processes will continually rebuild and rerun the tests. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
open Jest; | ||
|
||
describe("Hello World", () => | ||
Expect.( | ||
test("says hello", () => | ||
expect(HelloWorld.hello()) |> toBe("Hello, World!") | ||
) | ||
) | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// This is the configuration file used by BuckleScript's build system bsb. Its documentation lives here: http://bucklescript.github.io/bucklescript/docson/#build-schema.json | ||
// BuckleScript comes with its own parser for bsconfig.json, which is normal JSON, with the extra support of comments and trailing commas. | ||
{ | ||
"name": "hello-world", | ||
"version": "0.1.0", | ||
"sources": [ | ||
{ | ||
"dir" : "src", | ||
"subdirs" : true | ||
}, | ||
{ | ||
"dir": "__tests__", | ||
"type": "dev" | ||
} | ||
], | ||
"package-specs": { | ||
"module": "commonjs", | ||
"in-source": true | ||
}, | ||
"suffix": ".bs.js", | ||
"bs-dependencies": [ | ||
// add your dependencies here. You'd usually install them normally through `npm install my-dependency`. If my-dependency has a bsconfig.json too, then everything will work seamlessly. | ||
], | ||
"bs-dev-dependencies": ["@glennsl/bs-jest"], | ||
"warnings": { | ||
"error" : "+101" | ||
}, | ||
"namespace": true, | ||
"refmt": 3 | ||
} |