Skip to content

Commit 47dc88d

Browse files
committed
Remove extra comments from tests
1 parent 4c3e630 commit 47dc88d

File tree

13 files changed

+7
-123
lines changed

13 files changed

+7
-123
lines changed

exercises/practice/circular-buffer/circular-buffer-test.ys

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,6 @@ require ys::taptest: :all
44

55
use: circular-buffer
66

7-
# In general, these circular buffers are expected to be stateful,
8-
# and each language will operate on them differently.
9-
# Tests tend to perform a series of operations, some of which expect a certain result.
10-
# As such, this common test suite can only say in abstract terms what should be done.
11-
#
12-
# Tests will contain a number of operations. The operation will be specified in the `operation` key.
13-
# Based on the operation, other keys may be present.
14-
# read: Reading from the buffer should succeed if and only if `should_succeed` is true.
15-
# If it should succeed, it should produce the item at `expected`.
16-
# If it should fail, `expected` will not be present.
17-
# write: Writing the item located at `item` should succeed if and only if `should_succeed` is true.
18-
# overwrite: Write the item located at `item` into the buffer, replacing the oldest item if necessary.
19-
# clear: Clear the buffer.
20-
#
21-
# Failure of either `read` or `write` may be indicated in a manner appropriate for your language:
22-
# Raising an exception, returning (int, error), returning Option<int>, etc.
23-
#
24-
# Finally, note that all values are integers.
25-
# If your language contains generics, you may consider allowing buffers to contain other types.
26-
# Tests for that are not included here.
27-
28-
297
test::
308
- name: Reading empty buffer should fail
319
code: run(1 [{"operation" "read", "should_succeed" false}])

exercises/practice/grains/.meta/grains-test.ys

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ require ys::taptest: :all
44

55
use: grains
66

7-
# The final tests of square test error conditions
8-
# In these cases you should expect an error as is idiomatic for your language
9-
107
test::
118
- name: Grains on square 1
129
code: square(1)

exercises/practice/grains/grains-test.ys

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ require ys::taptest: :all
44

55
use: grains
66

7-
# The final tests of square test error conditions
8-
# In these cases you should expect an error as is idiomatic for your language
9-
107
test::
118
- name: Grains on square 1
129
code: square(1)

exercises/practice/hamming/.meta/hamming-test.ys

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,12 @@ test::
3030
want: 9
3131
uuid: cd2273a5-c576-46c8-a52b-dee251c3e6e5
3232

33-
- name: Disallow first strand longer
34-
code: distance("AATG" "AAA")
35-
what: error
36-
# want: left and right strands must be of equal length
37-
want: strands must be of equal length
38-
uuid: 919f8ef0-b767-4d1b-8516-6379d07fcb28
39-
4033
- name: Disallow first strand longer
4134
code: distance("AATG" "AAA")
4235
what: error
4336
want: strands must be of equal length
4437
uuid: b9228bb1-465f-4141-b40f-1f99812de5a8
4538

46-
- name: Disallow second strand longer
47-
code: distance("ATA" "AGTG")
48-
what: error
49-
# want: left and right strands must be of equal length
50-
want: strands must be of equal length
51-
uuid: 8a2d4ed0-ead5-4fdd-924d-27c4cf56e60e
52-
5339
- name: Disallow second strand longer
5440
code: distance("ATA" "AGTG")
5541
what: error
@@ -59,14 +45,6 @@ test::
5945
- name: Disallow left empty strand
6046
code: distance("" "G")
6147
what: error
62-
# want: left strand must not be empty
63-
want: strands must be of equal length
64-
uuid: 5dce058b-28d4-4ca7-aa64-adfe4e17784c
65-
66-
- name: Disallow left empty strand
67-
code: distance("" "G")
68-
what: error
69-
# want: left and right strands must be of equal length
7048
want: strands must be of equal length
7149
uuid: db92e77e-7c72-499d-8fe6-9354d2bfd504
7250

@@ -79,14 +57,6 @@ test::
7957
- name: Disallow right empty strand
8058
code: distance("G" "")
8159
what: error
82-
# want: right strand must not be empty
83-
want: strands must be of equal length
84-
uuid: 38826d4b-16fb-4639-ac3e-ba027dec8b5f
85-
86-
- name: Disallow right empty strand
87-
code: distance("G" "")
88-
what: error
89-
# want: left and right strands must be of equal length
9060
want: strands must be of equal length
9161
uuid: 920cd6e3-18f4-4143-b6b8-74270bb8f8a3
9262

@@ -96,4 +66,4 @@ test::
9666
want: strands must be of equal length
9767
uuid: 9ab9262f-3521-4191-81f5-0ed184a5aa89
9868

99-
done: 15
69+
done: 11

exercises/practice/hamming/hamming-test.ys

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,6 @@ test::
2828
- name: Disallow first strand longer
2929
code: distance("AATG" "AAA")
3030
what: error
31-
# want: left and right strands must be of equal length
32-
want: strands must be of equal length
33-
34-
- name: Disallow first strand longer
35-
code: distance("AATG" "AAA")
36-
what: error
37-
want: strands must be of equal length
38-
39-
- name: Disallow second strand longer
40-
code: distance("ATA" "AGTG")
41-
what: error
42-
# want: left and right strands must be of equal length
4331
want: strands must be of equal length
4432

4533
- name: Disallow second strand longer
@@ -50,13 +38,6 @@ test::
5038
- name: Disallow left empty strand
5139
code: distance("" "G")
5240
what: error
53-
# want: left strand must not be empty
54-
want: strands must be of equal length
55-
56-
- name: Disallow left empty strand
57-
code: distance("" "G")
58-
what: error
59-
# want: left and right strands must be of equal length
6041
want: strands must be of equal length
6142

6243
- name: Disallow empty first strand
@@ -67,18 +48,11 @@ test::
6748
- name: Disallow right empty strand
6849
code: distance("G" "")
6950
what: error
70-
# want: right strand must not be empty
71-
want: strands must be of equal length
72-
73-
- name: Disallow right empty strand
74-
code: distance("G" "")
75-
what: error
76-
# want: left and right strands must be of equal length
7751
want: strands must be of equal length
7852

7953
- name: Disallow empty second strand
8054
code: distance("G" "")
8155
what: error
8256
want: strands must be of equal length
8357

84-
done: 15
58+
done: 11

exercises/practice/largest-series-product/.meta/largest-series-product-test.ys

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,10 @@ test::
7878
want: digits input must only contain digits
7979
uuid: 7a38f2d6-3c35-45f6-8d6f-12e6e32d4d74
8080

81-
- name: Rejects negative span
82-
code: largest-product("12345" -1)
83-
what: error
84-
# want: span must be greater than zero
85-
want: span must not be negative
86-
uuid: 5fe3c0e5-a945-49f2-b584-f0814b4dd1ef
87-
8881
- name: Rejects negative span
8982
code: largest-product("12345" -1)
9083
what: error
9184
want: span must not be negative
9285
uuid: c859f34a-9bfe-4897-9c2f-6d7f8598e7f0
9386

94-
done: 16
87+
done: 15

exercises/practice/largest-series-product/largest-series-product-test.ys

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ test::
6767
- name: Rejects negative span
6868
code: largest-product("12345" -1)
6969
what: error
70-
# want: span must be greater than zero
7170
want: span must not be negative
7271

73-
- name: Rejects negative span
74-
code: largest-product("12345" -1)
75-
what: error
76-
want: span must not be negative
77-
78-
done: 16
72+
done: 15

exercises/practice/list-ops/.meta/list-ops-test.ys

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ require ys::taptest: :all
44

55
use: list-ops
66

7-
# Though there are no specifications here for dealing with large lists,
8-
# implementers may add tests for handling large lists to ensure that the
9-
# solutions have thought about performance concerns.
10-
117
test::
128
- name: Empty lists
139
code: append([] [])

exercises/practice/list-ops/list-ops-test.ys

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ require ys::taptest: :all
44

55
use: list-ops
66

7-
# Though there are no specifications here for dealing with large lists,
8-
# implementers may add tests for handling large lists to ensure that the
9-
# solutions have thought about performance concerns.
10-
117
test::
128
- name: Empty lists
139
code: append([] [])

exercises/practice/nth-prime/nth-prime-test.ys

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ test::
1818
want: 13
1919

2020
- name: Big prime
21-
# code: prime(10001) # Takes 200 ms
22-
# want: 104743
23-
code: prime(1001)
24-
want: 7927
21+
code: prime(10001)
22+
want: 104743
2523

2624
done: 4

0 commit comments

Comments
 (0)