Skip to content

Commit 0243656

Browse files
authored
Sync tests (#357)
* sync tests anagram -- skip unicode test cases * sync tests protein-translation * sync tests reverse-string -- skip unicode test cases
1 parent 73ecd6c commit 0243656

File tree

5 files changed

+35
-1
lines changed

5 files changed

+35
-1
lines changed

exercises/practice/anagram/.meta/tests.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ description = "detects anagrams using case-insensitive possible matches"
4545

4646
[7cc195ad-e3c7-44ee-9fd2-d3c344806a2c]
4747
description = "does not detect an anagram if the original word is repeated"
48+
include = false
49+
50+
[630abb71-a94e-4715-8395-179ec1df9f91]
51+
description = "does not detect an anagram if the original word is repeated"
52+
reimplements = "7cc195ad-e3c7-44ee-9fd2-d3c344806a2c"
4853

4954
[9878a1c9-d6ea-4235-ae51-3ea2befd6842]
5055
description = "anagrams must use all letters exactly once"
@@ -72,3 +77,11 @@ include = false
7277
[33d3f67e-fbb9-49d3-a90e-0beb00861da7]
7378
description = "words other than themselves can be anagrams"
7479
reimplements = "a0705568-628c-4b55-9798-82e4acde51ca"
80+
81+
[a6854f66-eec1-4afd-a137-62ef2870c051]
82+
description = "handles case of greek letters"
83+
include = false
84+
85+
[fd3509e5-e3ba-409d-ac3d-a9ac84d13296]
86+
description = "different characters may have the same bytes"
87+
include = false

exercises/practice/anagram/anagram.spec.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe 'Anagram', ->
5959

6060
xit 'does not detect an anagram if the original word is repeated', ->
6161
detector = new Anagram 'go'
62-
matches = detector.match ["go Go GO"]
62+
matches = detector.match ["goGoGO"]
6363
expect(matches).toEqual []
6464

6565
xit 'anagrams must use all letters exactly once', ->

exercises/practice/protein-translation/.meta/tests.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,15 @@ description = "Translation stops if STOP codon in middle of three-codon sequence
8787
[2c2a2a60-401f-4a80-b977-e0715b23b93d]
8888
description = "Translation stops if STOP codon in middle of six-codon sequence"
8989

90+
[f6f92714-769f-4187-9524-e353e8a41a80]
91+
description = "Sequence of two non-STOP codons does not translate to a STOP codon"
92+
9093
[1e75ea2a-f907-4994-ae5c-118632a1cb0f]
9194
description = "Non-existing codon can't translate"
9295

9396
[9eac93f3-627a-4c90-8653-6d0a0595bc6f]
9497
description = "Unknown amino acids, not part of a codon, can't translate"
98+
reimplements = "1e75ea2a-f907-4994-ae5c-118632a1cb0f"
9599

96100
[9d73899f-e68e-4291-b1e2-7bf87c00f024]
97101
description = "Incomplete RNA sequence can't translate"

exercises/practice/protein-translation/protein-translation.spec.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ describe 'ProteinTranslation', ->
131131
expected = ["Tryptophan", "Cysteine", "Tyrosine"]
132132
expect(results).toEqual expected
133133

134+
xit 'Sequence of two non-STOP codons does not translate to a STOP codon', ->
135+
results = ProteinTranslation.proteins("AUGAUG")
136+
expected = ["Methionine", "Methionine"]
137+
expect(results).toEqual expected
138+
134139
xit "Non-existing codon can't translate", ->
135140
expect ->
136141
ProteinTranslation.proteins("AAA")

exercises/practice/reverse-string/.meta/tests.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,15 @@ description = "a palindrome"
2626

2727
[b9e7dec1-c6df-40bd-9fa3-cd7ded010c4c]
2828
description = "an even-sized word"
29+
30+
[1bed0f8a-13b0-4bd3-9d59-3d0593326fa2]
31+
description = "wide characters"
32+
include = false
33+
34+
[93d7e1b8-f60f-4f3c-9559-4056e10d2ead]
35+
description = "grapheme cluster with pre-combined form"
36+
include = false
37+
38+
[1028b2c1-6763-4459-8540-2da47ca512d9]
39+
description = "grapheme clusters"
40+
include = false

0 commit comments

Comments
 (0)