trackler 2.2.1.177 → 2.2.1.178

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/lib/trackler/version.rb +1 -1
  3. data/tracks/go/config/exercise_readme.go.tmpl +3 -3
  4. data/tracks/go/docs/TESTS.md +1 -1
  5. data/tracks/go/exercises/accumulate/README.md +3 -3
  6. data/tracks/go/exercises/acronym/README.md +3 -3
  7. data/tracks/go/exercises/all-your-base/README.md +3 -3
  8. data/tracks/go/exercises/allergies/README.md +3 -3
  9. data/tracks/go/exercises/alphametics/README.md +3 -3
  10. data/tracks/go/exercises/anagram/README.md +3 -3
  11. data/tracks/go/exercises/armstrong-numbers/README.md +4 -4
  12. data/tracks/go/exercises/atbash-cipher/README.md +3 -3
  13. data/tracks/go/exercises/bank-account/README.md +3 -3
  14. data/tracks/go/exercises/beer-song/README.md +3 -3
  15. data/tracks/go/exercises/binary-search-tree/README.md +3 -3
  16. data/tracks/go/exercises/binary-search/README.md +3 -3
  17. data/tracks/go/exercises/binary/README.md +3 -3
  18. data/tracks/go/exercises/bob/README.md +3 -3
  19. data/tracks/go/exercises/book-store/README.md +3 -3
  20. data/tracks/go/exercises/bowling/README.md +3 -3
  21. data/tracks/go/exercises/bracket-push/README.md +3 -3
  22. data/tracks/go/exercises/change/README.md +3 -3
  23. data/tracks/go/exercises/circular-buffer/README.md +3 -3
  24. data/tracks/go/exercises/clock/README.md +3 -3
  25. data/tracks/go/exercises/collatz-conjecture/README.md +3 -3
  26. data/tracks/go/exercises/connect/README.md +3 -3
  27. data/tracks/go/exercises/counter/README.md +3 -3
  28. data/tracks/go/exercises/crypto-square/README.md +30 -27
  29. data/tracks/go/exercises/custom-set/README.md +3 -3
  30. data/tracks/go/exercises/diamond/README.md +3 -3
  31. data/tracks/go/exercises/difference-of-squares/README.md +3 -3
  32. data/tracks/go/exercises/diffie-hellman/README.md +3 -3
  33. data/tracks/go/exercises/dominoes/README.md +3 -3
  34. data/tracks/go/exercises/error-handling/README.md +3 -3
  35. data/tracks/go/exercises/etl/README.md +3 -3
  36. data/tracks/go/exercises/flatten-array/README.md +3 -3
  37. data/tracks/go/exercises/food-chain/README.md +3 -3
  38. data/tracks/go/exercises/forth/README.md +3 -3
  39. data/tracks/go/exercises/gigasecond/README.md +3 -3
  40. data/tracks/go/exercises/grade-school/README.md +3 -3
  41. data/tracks/go/exercises/grains/README.md +3 -3
  42. data/tracks/go/exercises/grep/README.md +3 -3
  43. data/tracks/go/exercises/hamming/README.md +7 -6
  44. data/tracks/go/exercises/hello-world/README.md +3 -3
  45. data/tracks/go/exercises/hello-world/hello_test.go +1 -1
  46. data/tracks/go/exercises/hexadecimal/README.md +3 -3
  47. data/tracks/go/exercises/house/README.md +3 -3
  48. data/tracks/go/exercises/isbn-verifier/README.md +3 -3
  49. data/tracks/go/exercises/isogram/README.md +3 -3
  50. data/tracks/go/exercises/kindergarten-garden/README.md +3 -3
  51. data/tracks/go/exercises/largest-series-product/README.md +3 -3
  52. data/tracks/go/exercises/leap/README.md +3 -3
  53. data/tracks/go/exercises/ledger/README.md +3 -3
  54. data/tracks/go/exercises/linked-list/README.md +20 -27
  55. data/tracks/go/exercises/luhn/README.md +3 -3
  56. data/tracks/go/exercises/markdown/README.md +3 -3
  57. data/tracks/go/exercises/matrix/README.md +3 -3
  58. data/tracks/go/exercises/meetup/README.md +3 -3
  59. data/tracks/go/exercises/minesweeper/README.md +3 -3
  60. data/tracks/go/exercises/nth-prime/README.md +3 -3
  61. data/tracks/go/exercises/nucleotide-count/README.md +3 -3
  62. data/tracks/go/exercises/ocr-numbers/README.md +3 -3
  63. data/tracks/go/exercises/octal/README.md +3 -3
  64. data/tracks/go/exercises/paasio/README.md +3 -3
  65. data/tracks/go/exercises/palindrome-products/README.md +3 -3
  66. data/tracks/go/exercises/pangram/README.md +3 -3
  67. data/tracks/go/exercises/parallel-letter-frequency/README.md +3 -3
  68. data/tracks/go/exercises/pascals-triangle/README.md +3 -3
  69. data/tracks/go/exercises/perfect-numbers/README.md +3 -3
  70. data/tracks/go/exercises/phone-number/README.md +3 -3
  71. data/tracks/go/exercises/pig-latin/README.md +3 -3
  72. data/tracks/go/exercises/poker/README.md +3 -3
  73. data/tracks/go/exercises/pov/README.md +3 -3
  74. data/tracks/go/exercises/prime-factors/README.md +3 -3
  75. data/tracks/go/exercises/protein-translation/README.md +3 -3
  76. data/tracks/go/exercises/proverb/README.md +3 -3
  77. data/tracks/go/exercises/pythagorean-triplet/README.md +3 -3
  78. data/tracks/go/exercises/queen-attack/README.md +3 -3
  79. data/tracks/go/exercises/rail-fence-cipher/README.md +3 -3
  80. data/tracks/go/exercises/raindrops/README.md +3 -3
  81. data/tracks/go/exercises/react/README.md +3 -3
  82. data/tracks/go/exercises/rectangles/README.md +3 -3
  83. data/tracks/go/exercises/reverse-string/README.md +3 -3
  84. data/tracks/go/exercises/rna-transcription/README.md +3 -3
  85. data/tracks/go/exercises/robot-name/README.md +3 -3
  86. data/tracks/go/exercises/robot-simulator/README.md +3 -3
  87. data/tracks/go/exercises/roman-numerals/README.md +3 -3
  88. data/tracks/go/exercises/rotational-cipher/README.md +3 -3
  89. data/tracks/go/exercises/run-length-encoding/README.md +3 -3
  90. data/tracks/go/exercises/saddle-points/README.md +3 -3
  91. data/tracks/go/exercises/say/README.md +4 -4
  92. data/tracks/go/exercises/scale-generator/README.md +12 -19
  93. data/tracks/go/exercises/scrabble-score/README.md +3 -3
  94. data/tracks/go/exercises/secret-handshake/README.md +3 -3
  95. data/tracks/go/exercises/series/README.md +9 -9
  96. data/tracks/go/exercises/sieve/README.md +8 -6
  97. data/tracks/go/exercises/simple-cipher/README.md +3 -3
  98. data/tracks/go/exercises/simple-linked-list/README.md +3 -3
  99. data/tracks/go/exercises/space-age/README.md +3 -3
  100. data/tracks/go/exercises/spiral-matrix/README.md +3 -3
  101. data/tracks/go/exercises/strain/README.md +3 -3
  102. data/tracks/go/exercises/sublist/README.md +3 -3
  103. data/tracks/go/exercises/sum-of-multiples/README.md +3 -3
  104. data/tracks/go/exercises/tournament/README.md +3 -3
  105. data/tracks/go/exercises/transpose/README.md +3 -3
  106. data/tracks/go/exercises/tree-building/README.md +3 -3
  107. data/tracks/go/exercises/triangle/README.md +3 -3
  108. data/tracks/go/exercises/triangle/triangle.go +2 -2
  109. data/tracks/go/exercises/trinary/README.md +3 -3
  110. data/tracks/go/exercises/twelve-days/README.md +3 -3
  111. data/tracks/go/exercises/two-bucket/README.md +3 -3
  112. data/tracks/go/exercises/two-fer/README.md +3 -3
  113. data/tracks/go/exercises/variable-length-quantity/README.md +3 -3
  114. data/tracks/go/exercises/word-count/README.md +3 -3
  115. data/tracks/go/exercises/word-search/README.md +3 -3
  116. data/tracks/go/exercises/wordy/README.md +3 -3
  117. data/tracks/go/exercises/yacht/README.md +9 -10
  118. data/tracks/go/exercises/zebra-puzzle/README.md +3 -3
  119. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e5bcb62b38646413cb1b774d068463bb8f4a70c
4
- data.tar.gz: 955ab5796404df47072cdb28d09600e3edbff1bd
3
+ metadata.gz: ca50d7d1d4b2ee947e08370ff3fc95b678fc13d5
4
+ data.tar.gz: 1ab07f551bddfcefc505f1b1b0f03c3e0694d618
5
5
  SHA512:
6
- metadata.gz: fd13a222bd29b3d53520d44f84b0cee0fad4dedf5b27de00143c1738689a5de48b74c1f17ceb92bcbb2f260d494b9b1f973b6d03574659c2cbac50a9e0a61f89
7
- data.tar.gz: 1f33b0a29f2a0800d0ef2151dd0f9a82b0659e504a2557d594b6d168f7d9587a4dd64d43764dea2f4bb2b13adfd6dc858088e116008f14377e404627e64c1a8f
6
+ metadata.gz: f04d0fce48e09d09e4666d18fcf1babc9968c33d242ee088c706400fd892b28728875ce4f9d0730540b72c4effa90b97a9e31f130ff39bc3fbf0839ad97eecf5
7
+ data.tar.gz: 7fc76eaac7b30187cde6435ac97632de98a38eec8c51913d93216c05771fac00c14c1af2fb87e6e33916266dc3d38cbdb33151e009ef0e0f59f21200d0acc47e
@@ -1,3 +1,3 @@
1
1
  module Trackler
2
- VERSION = "2.2.1.177"
2
+ VERSION = "2.2.1.178"
3
3
  end
@@ -8,10 +8,10 @@
8
8
 
9
9
  To run the tests run the command `go test` from within the exercise directory.
10
10
 
11
- If the test suite contains benchmarks, you can run these with the `-bench`
12
- flag:
11
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
12
+ flags:
13
13
 
14
- go test -bench .
14
+ go test -v --bench . --benchmem
15
15
 
16
16
  Keep in mind that each reviewer will run benchmarks on a different machine, with
17
17
  different specs, so the results from these benchmark tests may vary.
@@ -7,7 +7,7 @@ $ go test
7
7
 
8
8
  ### Running benchmarks
9
9
 
10
- Most exercises contain benchmarks, that you can use to determine how changes to your solution affect its performance. To run the benchmarks for an exercise use the command `go test -bench .` inside the exercise directory.
10
+ Most exercises contain benchmarks, that you can use to determine how changes to your solution affect its performance. To run the benchmarks for an exercise use the command `go test -v --bench . --benchmem` inside the exercise directory.
11
11
 
12
12
  ### Testable examples
13
13
 
@@ -29,10 +29,10 @@ Solve this one yourself using other basic tools instead.
29
29
 
30
30
  To run the tests run the command `go test` from within the exercise directory.
31
31
 
32
- If the test suite contains benchmarks, you can run these with the `-bench`
33
- flag:
32
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
33
+ flags:
34
34
 
35
- go test -bench .
35
+ go test -v --bench . --benchmem
36
36
 
37
37
  Keep in mind that each reviewer will run benchmarks on a different machine, with
38
38
  different specs, so the results from these benchmark tests may vary.
@@ -11,10 +11,10 @@ like Portable Network Graphics to its acronym (PNG).
11
11
 
12
12
  To run the tests run the command `go test` from within the exercise directory.
13
13
 
14
- If the test suite contains benchmarks, you can run these with the `-bench`
15
- flag:
14
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
15
+ flags:
16
16
 
17
- go test -bench .
17
+ go test -v --bench . --benchmem
18
18
 
19
19
  Keep in mind that each reviewer will run benchmarks on a different machine, with
20
20
  different specs, so the results from these benchmark tests may vary.
@@ -50,10 +50,10 @@ returns one of following messages:
50
50
 
51
51
  To run the tests run the command `go test` from within the exercise directory.
52
52
 
53
- If the test suite contains benchmarks, you can run these with the `-bench`
54
- flag:
53
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
54
+ flags:
55
55
 
56
- go test -bench .
56
+ go test -v --bench . --benchmem
57
57
 
58
58
  Keep in mind that each reviewer will run benchmarks on a different machine, with
59
59
  different specs, so the results from these benchmark tests may vary.
@@ -33,10 +33,10 @@ score is 257, your program should only report the eggs (1) allergy.
33
33
 
34
34
  To run the tests run the command `go test` from within the exercise directory.
35
35
 
36
- If the test suite contains benchmarks, you can run these with the `-bench`
37
- flag:
36
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
37
+ flags:
38
38
 
39
- go test -bench .
39
+ go test -v --bench . --benchmem
40
40
 
41
41
  Keep in mind that each reviewer will run benchmarks on a different machine, with
42
42
  different specs, so the results from these benchmark tests may vary.
@@ -75,10 +75,10 @@ Replacing these with valid numbers gives:
75
75
 
76
76
  To run the tests run the command `go test` from within the exercise directory.
77
77
 
78
- If the test suite contains benchmarks, you can run these with the `-bench`
79
- flag:
78
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
79
+ flags:
80
80
 
81
- go test -bench .
81
+ go test -v --bench . --benchmem
82
82
 
83
83
  Keep in mind that each reviewer will run benchmarks on a different machine, with
84
84
  different specs, so the results from these benchmark tests may vary.
@@ -10,10 +10,10 @@ Given `"listen"` and a list of candidates like `"enlists" "google"
10
10
 
11
11
  To run the tests run the command `go test` from within the exercise directory.
12
12
 
13
- If the test suite contains benchmarks, you can run these with the `-bench`
14
- flag:
13
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
14
+ flags:
15
15
 
16
- go test -bench .
16
+ go test -v --bench . --benchmem
17
17
 
18
18
  Keep in mind that each reviewer will run benchmarks on a different machine, with
19
19
  different specs, so the results from these benchmark tests may vary.
@@ -5,7 +5,7 @@ An [Armstrong number](https://en.wikipedia.org/wiki/Narcissistic_number) is a nu
5
5
  For example:
6
6
 
7
7
  - 9 is an Armstrong number, because `9 = 9^1 = 9`
8
- - 10 is *not* an Armstrong number, because `10 != 1^2 + 0^2 = 2`
8
+ - 10 is *not* an Armstrong number, because `10 != 1^2 + 0^2 = 1`
9
9
  - 153 is an Armstrong number, because: `153 = 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153`
10
10
  - 154 is *not* an Armstrong number, because: `154 != 1^3 + 5^3 + 4^3 = 1 + 125 + 64 = 190`
11
11
 
@@ -15,10 +15,10 @@ Write some code to determine whether a number is an Armstrong number.
15
15
 
16
16
  To run the tests run the command `go test` from within the exercise directory.
17
17
 
18
- If the test suite contains benchmarks, you can run these with the `-bench`
19
- flag:
18
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
19
+ flags:
20
20
 
21
- go test -bench .
21
+ go test -v --bench . --benchmem
22
22
 
23
23
  Keep in mind that each reviewer will run benchmarks on a different machine, with
24
24
  different specs, so the results from these benchmark tests may vary.
@@ -32,10 +32,10 @@ things based on word boundaries.
32
32
 
33
33
  To run the tests run the command `go test` from within the exercise directory.
34
34
 
35
- If the test suite contains benchmarks, you can run these with the `-bench`
36
- flag:
35
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
36
+ flags:
37
37
 
38
- go test -bench .
38
+ go test -v --bench . --benchmem
39
39
 
40
40
  Keep in mind that each reviewer will run benchmarks on a different machine, with
41
41
  different specs, so the results from these benchmark tests may vary.
@@ -30,10 +30,10 @@ Have fun!
30
30
 
31
31
  To run the tests run the command `go test` from within the exercise directory.
32
32
 
33
- If the test suite contains benchmarks, you can run these with the `-bench`
34
- flag:
33
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
34
+ flags:
35
35
 
36
- go test -bench .
36
+ go test -v --bench . --benchmem
37
37
 
38
38
  Keep in mind that each reviewer will run benchmarks on a different machine, with
39
39
  different specs, so the results from these benchmark tests may vary.
@@ -324,10 +324,10 @@ experiment make the code better? Worse? Did you learn anything from it?
324
324
 
325
325
  To run the tests run the command `go test` from within the exercise directory.
326
326
 
327
- If the test suite contains benchmarks, you can run these with the `-bench`
328
- flag:
327
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
328
+ flags:
329
329
 
330
- go test -bench .
330
+ go test -v --bench . --benchmem
331
331
 
332
332
  Keep in mind that each reviewer will run benchmarks on a different machine, with
333
333
  different specs, so the results from these benchmark tests may vary.
@@ -57,10 +57,10 @@ And if we then added 1, 5, and 7, it would look like this
57
57
 
58
58
  To run the tests run the command `go test` from within the exercise directory.
59
59
 
60
- If the test suite contains benchmarks, you can run these with the `-bench`
61
- flag:
60
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
61
+ flags:
62
62
 
63
- go test -bench .
63
+ go test -v --bench . --benchmem
64
64
 
65
65
  Keep in mind that each reviewer will run benchmarks on a different machine, with
66
66
  different specs, so the results from these benchmark tests may vary.
@@ -38,10 +38,10 @@ A binary search is a dichotomic divide and conquer search algorithm.
38
38
 
39
39
  To run the tests run the command `go test` from within the exercise directory.
40
40
 
41
- If the test suite contains benchmarks, you can run these with the `-bench`
42
- flag:
41
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
42
+ flags:
43
43
 
44
- go test -bench .
44
+ go test -v --bench . --benchmem
45
45
 
46
46
  Keep in mind that each reviewer will run benchmarks on a different machine, with
47
47
  different specs, so the results from these benchmark tests may vary.
@@ -34,10 +34,10 @@ So: `101 => 1*2^2 + 0*2^1 + 1*2^0 => 1*4 + 0*2 + 1*1 => 4 + 1 => 5 base 10`.
34
34
 
35
35
  To run the tests run the command `go test` from within the exercise directory.
36
36
 
37
- If the test suite contains benchmarks, you can run these with the `-bench`
38
- flag:
37
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
38
+ flags:
39
39
 
40
- go test -bench .
40
+ go test -v --bench . --benchmem
41
41
 
42
42
  Keep in mind that each reviewer will run benchmarks on a different machine, with
43
43
  different specs, so the results from these benchmark tests may vary.
@@ -17,10 +17,10 @@ He answers 'Whatever.' to anything else.
17
17
 
18
18
  To run the tests run the command `go test` from within the exercise directory.
19
19
 
20
- If the test suite contains benchmarks, you can run these with the `-bench`
21
- flag:
20
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
21
+ flags:
22
22
 
23
- go test -bench .
23
+ go test -v --bench . --benchmem
24
24
 
25
25
  Keep in mind that each reviewer will run benchmarks on a different machine, with
26
26
  different specs, so the results from these benchmark tests may vary.
@@ -87,10 +87,10 @@ Only integer calculations are necessary for this exercise.
87
87
 
88
88
  To run the tests run the command `go test` from within the exercise directory.
89
89
 
90
- If the test suite contains benchmarks, you can run these with the `-bench`
91
- flag:
90
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
91
+ flags:
92
92
 
93
- go test -bench .
93
+ go test -v --bench . --benchmem
94
94
 
95
95
  Keep in mind that each reviewer will run benchmarks on a different machine, with
96
96
  different specs, so the results from these benchmark tests may vary.
@@ -64,10 +64,10 @@ support two operations:
64
64
 
65
65
  To run the tests run the command `go test` from within the exercise directory.
66
66
 
67
- If the test suite contains benchmarks, you can run these with the `-bench`
68
- flag:
67
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
68
+ flags:
69
69
 
70
- go test -bench .
70
+ go test -v --bench . --benchmem
71
71
 
72
72
  Keep in mind that each reviewer will run benchmarks on a different machine, with
73
73
  different specs, so the results from these benchmark tests may vary.
@@ -8,10 +8,10 @@ and nested correctly.
8
8
 
9
9
  To run the tests run the command `go test` from within the exercise directory.
10
10
 
11
- If the test suite contains benchmarks, you can run these with the `-bench`
12
- flag:
11
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
12
+ flags:
13
13
 
14
- go test -bench .
14
+ go test -v --bench . --benchmem
15
15
 
16
16
  Keep in mind that each reviewer will run benchmarks on a different machine, with
17
17
  different specs, so the results from these benchmark tests may vary.
@@ -20,10 +20,10 @@ that the sum of the coins' value would equal the correct amount of change.
20
20
 
21
21
  To run the tests run the command `go test` from within the exercise directory.
22
22
 
23
- If the test suite contains benchmarks, you can run these with the `-bench`
24
- flag:
23
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
24
+ flags:
25
25
 
26
- go test -bench .
26
+ go test -v --bench . --benchmem
27
27
 
28
28
  Keep in mind that each reviewer will run benchmarks on a different machine, with
29
29
  different specs, so the results from these benchmark tests may vary.
@@ -54,10 +54,10 @@ the buffer is once again full.
54
54
 
55
55
  To run the tests run the command `go test` from within the exercise directory.
56
56
 
57
- If the test suite contains benchmarks, you can run these with the `-bench`
58
- flag:
57
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
58
+ flags:
59
59
 
60
- go test -bench .
60
+ go test -v --bench . --benchmem
61
61
 
62
62
  Keep in mind that each reviewer will run benchmarks on a different machine, with
63
63
  different specs, so the results from these benchmark tests may vary.
@@ -10,10 +10,10 @@ Two clocks that represent the same time should be equal to each other.
10
10
 
11
11
  To run the tests run the command `go test` from within the exercise directory.
12
12
 
13
- If the test suite contains benchmarks, you can run these with the `-bench`
14
- flag:
13
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
14
+ flags:
15
15
 
16
- go test -bench .
16
+ go test -v --bench . --benchmem
17
17
 
18
18
  Keep in mind that each reviewer will run benchmarks on a different machine, with
19
19
  different specs, so the results from these benchmark tests may vary.
@@ -30,10 +30,10 @@ Resulting in 9 steps. So for input n = 12, the return value would be 9.
30
30
 
31
31
  To run the tests run the command `go test` from within the exercise directory.
32
32
 
33
- If the test suite contains benchmarks, you can run these with the `-bench`
34
- flag:
33
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
34
+ flags:
35
35
 
36
- go test -bench .
36
+ go test -v --bench . --benchmem
37
37
 
38
38
  Keep in mind that each reviewer will run benchmarks on a different machine, with
39
39
  different specs, so the results from these benchmark tests may vary.
@@ -34,10 +34,10 @@ won since `O` didn't connect top and bottom.
34
34
 
35
35
  To run the tests run the command `go test` from within the exercise directory.
36
36
 
37
- If the test suite contains benchmarks, you can run these with the `-bench`
38
- flag:
37
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
38
+ flags:
39
39
 
40
- go test -bench .
40
+ go test -v --bench . --benchmem
41
41
 
42
42
  Keep in mind that each reviewer will run benchmarks on a different machine, with
43
43
  different specs, so the results from these benchmark tests may vary.
@@ -24,10 +24,10 @@ of times, passing in strings, and afterwards call the "lines",
24
24
 
25
25
  To run the tests run the command `go test` from within the exercise directory.
26
26
 
27
- If the test suite contains benchmarks, you can run these with the `-bench`
28
- flag:
27
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
28
+ flags:
29
29
 
30
- go test -bench .
30
+ go test -v --bench . --benchmem
31
31
 
32
32
  Keep in mind that each reviewer will run benchmarks on a different machine, with
33
33
  different specs, so the results from these benchmark tests may vary.
@@ -12,11 +12,15 @@ regarded as forming a rectangle when printed with intervening newlines.
12
12
 
13
13
  For example, the sentence
14
14
 
15
- > If man was meant to stay on the ground, god would have given us roots.
15
+ ```text
16
+ "If man was meant to stay on the ground, god would have given us roots."
17
+ ```
16
18
 
17
19
  is normalized to:
18
20
 
19
- > ifmanwasmeanttostayonthegroundgodwouldhavegivenusroots
21
+ ```text
22
+ "ifmanwasmeanttostayonthegroundgodwouldhavegivenusroots"
23
+ ```
20
24
 
21
25
  The plaintext should be organized in to a rectangle. The size of the
22
26
  rectangle (`r x c`) should be decided by the length of the message,
@@ -27,13 +31,13 @@ Our normalized text is 54 characters long, dictating a rectangle with
27
31
  `c = 8` and `r = 7`:
28
32
 
29
33
  ```text
30
- ifmanwas
31
- meanttos
32
- tayonthe
33
- groundgo
34
- dwouldha
35
- vegivenu
36
- sroots
34
+ "ifmanwas"
35
+ "meanttos"
36
+ "tayonthe"
37
+ "groundgo"
38
+ "dwouldha"
39
+ "vegivenu"
40
+ "sroots "
37
41
  ```
38
42
 
39
43
  The coded message is obtained by reading down the columns going left to
@@ -42,41 +46,40 @@ right.
42
46
  The message above is coded as:
43
47
 
44
48
  ```text
45
- imtgdvsfearwermayoogoanouuiontnnlvtwttddesaohghnsseoau
49
+ "imtgdvsfearwermayoogoanouuiontnnlvtwttddesaohghnsseoau"
46
50
  ```
47
51
 
48
- Output the encoded text in chunks. Phrases that fill perfect rectangles
49
- `(r X c)` should be output `c` chunks of `r` length, separated by spaces.
50
- Phrases that do not fill perfect rectangles will have `n` empty spaces.
51
- Those spaces should be distributed evenly, added to the end of the last
52
- `n` chunks.
52
+ Output the encoded text in chunks that fill perfect rectangles `(r X c)`,
53
+ with `c` chunks of `r` length, separated by spaces. For phrases that are
54
+ `n` characters short of the perfect rectangle, pad each of the last `n`
55
+ chunks with a single trailing space.
53
56
 
54
57
  ```text
55
- imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau
58
+ "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau "
56
59
  ```
57
60
 
58
61
  Notice that were we to stack these, we could visually decode the
59
62
  cyphertext back in to the original message:
60
63
 
61
64
  ```text
62
- imtgdvs
63
- fearwer
64
- mayoogo
65
- anouuio
66
- ntnnlvt
67
- wttddes
68
- aohghn
69
- sseoau
65
+ "imtgdvs"
66
+ "fearwer"
67
+ "mayoogo"
68
+ "anouuio"
69
+ "ntnnlvt"
70
+ "wttddes"
71
+ "aohghn "
72
+ "sseoau "
70
73
  ```
71
74
 
72
75
  ## Running the tests
73
76
 
74
77
  To run the tests run the command `go test` from within the exercise directory.
75
78
 
76
- If the test suite contains benchmarks, you can run these with the `-bench`
77
- flag:
79
+ If the test suite contains benchmarks, you can run these with the `--bench` and `--benchmem`
80
+ flags:
78
81
 
79
- go test -bench .
82
+ go test -v --bench . --benchmem
80
83
 
81
84
  Keep in mind that each reviewer will run benchmarks on a different machine, with
82
85
  different specs, so the results from these benchmark tests may vary.