Skip to content

Commit 8560006

Browse files
committed
Add project
1 parent 7792ee1 commit 8560006

File tree

6 files changed

+7159
-0
lines changed

6 files changed

+7159
-0
lines changed

two-fer/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# metadata
2+
.exercism
3+
.DS_Store
4+
5+
# Dependency directories
6+
node_modules

two-fer/README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Two Fer
2+
3+
`Two-fer` or `2-fer` is short for two for one. One for you and one for me.
4+
5+
```text
6+
"One for X, one for me."
7+
```
8+
9+
When X is a name or "you".
10+
11+
If the given name is "Alice", the result should be "One for Alice, one for me."
12+
If no name is given, the result should be "One for you, one for me."
13+
14+
15+
## Setup
16+
17+
Go through the setup instructions for Javascript to
18+
install the necessary dependencies:
19+
20+
[https://exercism.io/tracks/javascript/installation](https://exercism.io/tracks/javascript/installation)
21+
22+
## Requirements
23+
24+
Install assignment dependencies:
25+
26+
```bash
27+
$ npm install
28+
```
29+
30+
## Making the test suite pass
31+
32+
Execute the tests with:
33+
34+
```bash
35+
$ npm test
36+
```
37+
38+
In the test suites all tests but the first have been skipped.
39+
40+
Once you get a test passing, you can enable the next one by
41+
changing `xtest` to `test`.
42+
43+
44+
## Source
45+
46+
[https://en.wikipedia.org/wiki/Two-fer](https://en.wikipedia.org/wiki/Two-fer)
47+
48+
## Submitting Incomplete Solutions
49+
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

0 commit comments

Comments
 (0)