Skip to content

Commit

Permalink
reasonml/hello-world
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo committed Mar 24, 2020
1 parent ffd1bf2 commit ac01f0b
Show file tree
Hide file tree
Showing 25 changed files with 5,596 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
8 changes: 8 additions & 0 deletions .idea/Exercism.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

455 changes: 455 additions & 0 deletions .idea/dbnavigator.xml

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ Tracks List
- [x] - Two Fer: [link](https://exercism.io/my/solutions/a966c32cea2d46deacd66f4ca400618d)
- [ ] - Atbash Cipher
- [x] - Word Count: [link](https://exercism.io/my/solutions/fd8c57e4bd98455fb96969b384dd05bf)

### ReasonML
1 change: 1 addition & 0 deletions reasonml/hello-world/.solution.json
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}
37 changes: 37 additions & 0 deletions reasonml/hello-world/README.md
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.
9 changes: 9 additions & 0 deletions reasonml/hello-world/__tests__/HelloWorld_test.re
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!")
)
)
);
30 changes: 30 additions & 0 deletions reasonml/hello-world/bsconfig.json
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
}
Loading

0 comments on commit ac01f0b

Please sign in to comment.