Skip to content

Commit 24d3811

Browse files
SleeplessByteFridaTveit
authored andcommitted
Add setup instructions, sync and fix all README.md (exercism#1655)
* Add TrackInsert variable and document The `TrackInsert` template variable allows the contents of the track specific documenation to be written in a markdown file (which allows tooling to highlight, lint and generally process this). This is the basic content given that there are no dependencies specific to an exercise to install. * Regenerate all README.md This updates all README.md to the canonical data as well as: - adds the setup and test suite instructions - adds the windows variant of running the suite - fix several issues with wording / outdated naming - custom edits where necessary
1 parent 6b48a1c commit 24d3811

112 files changed

Lines changed: 2018 additions & 525 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎config/exercise-readme-insert.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Setup
2+
3+
Go through the setup instructions for Java to install the necessary
4+
dependencies:
5+
6+
[https://exercism.io/tracks/java/installation](https://exercism.io/tracks/java/installation)
7+
8+
# Running the tests
9+
10+
You can run all the tests for an exercise by entering the following in your
11+
terminal:
12+
13+
```sh
14+
$ gradle test
15+
```
16+
17+
> Use `gradlew.bat` if you're on Windows
18+
19+
In the test suites all tests but the first have been skipped.
20+
21+
Once you get a test passing, you can enable the next one by removing the
22+
`@Ignore("Remove to run test")` annotation.

‎config/exercise_readme.go.tmpl‎

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,18 @@
22

33
{{ .Spec.Description -}}
44
{{- with .Hints }}
5-
# Java Tips
5+
# Tips
66

77
{{ . }}
88
{{ end }}
9-
# Running the tests
10-
11-
You can run all the tests for an exercise by entering
12-
13-
```sh
14-
$ gradle test
15-
```
16-
17-
in your terminal.
18-
{{ with .Spec.Credits }}
9+
{{- with .TrackInsert }}
10+
{{ . }}
11+
{{ end }}
12+
{{- with .Spec.Credits -}}
1913
## Source
2014

2115
{{ . }}
2216
{{ end }}
2317
## Submitting Incomplete Solutions
24-
25-
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
18+
It's possible to submit an incomplete solution so you can see how others have
19+
completed the exercise.

‎exercises/accumulate/README.md‎

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,33 @@ Keep your hands off that collect/map/fmap/whatchamacallit functionality
2525
provided by your standard library!
2626
Solve this one yourself using other basic tools instead.
2727

28+
## Setup
29+
30+
Go through the setup instructions for Java to install the necessary
31+
dependencies:
32+
33+
[https://exercism.io/tracks/java/installation](https://exercism.io/tracks/java/installation)
34+
2835
# Running the tests
2936

30-
You can run all the tests for an exercise by entering
37+
You can run all the tests for an exercise by entering the following in your
38+
terminal:
3139

3240
```sh
3341
$ gradle test
3442
```
3543

36-
in your terminal.
44+
> Use `gradlew.bat` if you're on Windows
45+
46+
In the test suites all tests but the first have been skipped.
47+
48+
Once you get a test passing, you can enable the next one by removing the
49+
`@Ignore("Remove to run test")` annotation.
3750

3851
## Source
3952

4053
Conversation with James Edward Gray II [https://twitter.com/jeg2](https://twitter.com/jeg2)
4154

4255
## Submitting Incomplete Solutions
43-
44-
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
56+
It's possible to submit an incomplete solution so you can see how others have
57+
completed the exercise.

‎exercises/acronym/README.md‎

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,33 @@ Techies love their TLA (Three Letter Acronyms)!
77
Help generate some jargon by writing a program that converts a long name
88
like Portable Network Graphics to its acronym (PNG).
99

10+
## Setup
11+
12+
Go through the setup instructions for Java to install the necessary
13+
dependencies:
14+
15+
[https://exercism.io/tracks/java/installation](https://exercism.io/tracks/java/installation)
16+
1017
# Running the tests
1118

12-
You can run all the tests for an exercise by entering
19+
You can run all the tests for an exercise by entering the following in your
20+
terminal:
1321

1422
```sh
1523
$ gradle test
1624
```
1725

18-
in your terminal.
26+
> Use `gradlew.bat` if you're on Windows
27+
28+
In the test suites all tests but the first have been skipped.
29+
30+
Once you get a test passing, you can enable the next one by removing the
31+
`@Ignore("Remove to run test")` annotation.
1932

2033
## Source
2134

2235
Julien Vanier [https://github.com/monkbroc](https://github.com/monkbroc)
2336

2437
## Submitting Incomplete Solutions
25-
26-
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
38+
It's possible to submit an incomplete solution so you can see how others have
39+
completed the exercise.

‎exercises/affine-cipher/README.md‎

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,25 +69,39 @@ harder to guess things based on word boundaries.
6969
- `15 * 7 mod 26 = 105 mod 26 = 1`
7070
- `7` is the MMI of `15 mod 26`
7171

72-
# Java Tips
72+
# Tips
7373

7474
Please notice that the `%` operator is not equivalent to the one described in the problem description
7575
([see Wikipedia entry for Modulo operation](https://en.wikipedia.org/wiki/Modulo_operation)).
7676

77+
78+
## Setup
79+
80+
Go through the setup instructions for Java to install the necessary
81+
dependencies:
82+
83+
[https://exercism.io/tracks/java/installation](https://exercism.io/tracks/java/installation)
84+
7785
# Running the tests
7886

79-
You can run all the tests for an exercise by entering
87+
You can run all the tests for an exercise by entering the following in your
88+
terminal:
8089

8190
```sh
8291
$ gradle test
8392
```
8493

85-
in your terminal.
94+
> Use `gradlew.bat` if you're on Windows
95+
96+
In the test suites all tests but the first have been skipped.
97+
98+
Once you get a test passing, you can enable the next one by removing the
99+
`@Ignore("Remove to run test")` annotation.
86100

87101
## Source
88102

89103
Wikipedia [http://en.wikipedia.org/wiki/Affine_cipher](http://en.wikipedia.org/wiki/Affine_cipher)
90104

91105
## Submitting Incomplete Solutions
92-
93-
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
106+
It's possible to submit an incomplete solution so you can see how others have
107+
completed the exercise.

‎exercises/all-your-base/README.md‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,30 @@ I think you got the idea!
3131

3232
*Yes. Those three numbers above are exactly the same. Congratulations!*
3333

34+
## Setup
35+
36+
Go through the setup instructions for Java to install the necessary
37+
dependencies:
38+
39+
[https://exercism.io/tracks/java/installation](https://exercism.io/tracks/java/installation)
40+
3441
# Running the tests
3542

36-
You can run all the tests for an exercise by entering
43+
You can run all the tests for an exercise by entering the following in your
44+
terminal:
3745

3846
```sh
3947
$ gradle test
4048
```
4149

42-
in your terminal.
50+
> Use `gradlew.bat` if you're on Windows
4351
44-
## Submitting Incomplete Solutions
52+
In the test suites all tests but the first have been skipped.
4553

46-
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
54+
Once you get a test passing, you can enable the next one by removing the
55+
`@Ignore("Remove to run test")` annotation.
56+
57+
58+
## Submitting Incomplete Solutions
59+
It's possible to submit an incomplete solution so you can see how others have
60+
completed the exercise.

‎exercises/allergies/README.md‎

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ allergens that score 256, 512, 1024, etc.). Your program should
2929
ignore those components of the score. For example, if the allergy
3030
score is 257, your program should only report the eggs (1) allergy.
3131

32-
# Java Tips
32+
# Tips
3333

3434
Since this exercise has difficulty 5 it doesn't come with any starter implementation.
3535
This is so that you get to practice creating classes and methods which is an important part of programming in Java.
@@ -91,20 +91,33 @@ The new error should tell you which type it's expecting.
9191
After having resolved these errors you should be ready to start making the tests pass!
9292

9393

94+
## Setup
95+
96+
Go through the setup instructions for Java to install the necessary
97+
dependencies:
98+
99+
[https://exercism.io/tracks/java/installation](https://exercism.io/tracks/java/installation)
100+
94101
# Running the tests
95102

96-
You can run all the tests for an exercise by entering
103+
You can run all the tests for an exercise by entering the following in your
104+
terminal:
97105

98106
```sh
99107
$ gradle test
100108
```
101109

102-
in your terminal.
110+
> Use `gradlew.bat` if you're on Windows
111+
112+
In the test suites all tests but the first have been skipped.
113+
114+
Once you get a test passing, you can enable the next one by removing the
115+
`@Ignore("Remove to run test")` annotation.
103116

104117
## Source
105118

106119
Jumpstart Lab Warm-up [http://jumpstartlab.com](http://jumpstartlab.com)
107120

108121
## Submitting Incomplete Solutions
109-
110-
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
122+
It's possible to submit an incomplete solution so you can see how others have
123+
completed the exercise.

‎exercises/alphametics/README.md‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,30 @@ a multi-digit number must not be zero.
3131

3232
Write a function to solve alphametics puzzles.
3333

34+
## Setup
35+
36+
Go through the setup instructions for Java to install the necessary
37+
dependencies:
38+
39+
[https://exercism.io/tracks/java/installation](https://exercism.io/tracks/java/installation)
40+
3441
# Running the tests
3542

36-
You can run all the tests for an exercise by entering
43+
You can run all the tests for an exercise by entering the following in your
44+
terminal:
3745

3846
```sh
3947
$ gradle test
4048
```
4149

42-
in your terminal.
50+
> Use `gradlew.bat` if you're on Windows
4351
44-
## Submitting Incomplete Solutions
52+
In the test suites all tests but the first have been skipped.
4553

46-
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
54+
Once you get a test passing, you can enable the next one by removing the
55+
`@Ignore("Remove to run test")` annotation.
56+
57+
58+
## Submitting Incomplete Solutions
59+
It's possible to submit an incomplete solution so you can see how others have
60+
completed the exercise.

‎exercises/anagram/README.md‎

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,33 @@ Given `"listen"` and a list of candidates like `"enlists" "google"
66
"inlets" "banana"` the program should return a list containing
77
`"inlets"`.
88

9+
## Setup
10+
11+
Go through the setup instructions for Java to install the necessary
12+
dependencies:
13+
14+
[https://exercism.io/tracks/java/installation](https://exercism.io/tracks/java/installation)
15+
916
# Running the tests
1017

11-
You can run all the tests for an exercise by entering
18+
You can run all the tests for an exercise by entering the following in your
19+
terminal:
1220

1321
```sh
1422
$ gradle test
1523
```
1624

17-
in your terminal.
25+
> Use `gradlew.bat` if you're on Windows
26+
27+
In the test suites all tests but the first have been skipped.
28+
29+
Once you get a test passing, you can enable the next one by removing the
30+
`@Ignore("Remove to run test")` annotation.
1831

1932
## Source
2033

2134
Inspired by the Extreme Startup game [https://github.com/rchatley/extreme_startup](https://github.com/rchatley/extreme_startup)
2235

2336
## Submitting Incomplete Solutions
24-
25-
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
37+
It's possible to submit an incomplete solution so you can see how others have
38+
completed the exercise.

‎exercises/armstrong-numbers/README.md‎

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,39 @@ For example:
1111

1212
Write some code to determine whether a number is an Armstrong number.
1313

14-
# Java Tips
14+
# Tips
1515

1616
For more help on how to solve this exercise, please refer to the tutorial provided as part of the hello world exercise:
1717
[TUTORIAL.md](https://github.com/exercism/java/blob/master/exercises/hello-world/TUTORIAL.md)
1818

1919

20+
## Setup
21+
22+
Go through the setup instructions for Java to install the necessary
23+
dependencies:
24+
25+
[https://exercism.io/tracks/java/installation](https://exercism.io/tracks/java/installation)
26+
2027
# Running the tests
2128

22-
You can run all the tests for an exercise by entering
29+
You can run all the tests for an exercise by entering the following in your
30+
terminal:
2331

2432
```sh
2533
$ gradle test
2634
```
2735

28-
in your terminal.
36+
> Use `gradlew.bat` if you're on Windows
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 removing the
41+
`@Ignore("Remove to run test")` annotation.
2942

3043
## Source
3144

3245
Wikipedia [https://en.wikipedia.org/wiki/Narcissistic_number](https://en.wikipedia.org/wiki/Narcissistic_number)
3346

3447
## Submitting Incomplete Solutions
35-
36-
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
48+
It's possible to submit an incomplete solution so you can see how others have
49+
completed the exercise.

0 commit comments

Comments
 (0)