Skip to content

Commit

Permalink
Sync tests (#357)
Browse files Browse the repository at this point in the history
* sync tests anagram -- skip unicode test cases

* sync tests protein-translation

* sync tests reverse-string -- skip unicode test cases
  • Loading branch information
glennj authored Oct 8, 2024
1 parent 73ecd6c commit 0243656
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 1 deletion.
13 changes: 13 additions & 0 deletions exercises/practice/anagram/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ description = "detects anagrams using case-insensitive possible matches"

[7cc195ad-e3c7-44ee-9fd2-d3c344806a2c]
description = "does not detect an anagram if the original word is repeated"
include = false

[630abb71-a94e-4715-8395-179ec1df9f91]
description = "does not detect an anagram if the original word is repeated"
reimplements = "7cc195ad-e3c7-44ee-9fd2-d3c344806a2c"

[9878a1c9-d6ea-4235-ae51-3ea2befd6842]
description = "anagrams must use all letters exactly once"
Expand Down Expand Up @@ -72,3 +77,11 @@ include = false
[33d3f67e-fbb9-49d3-a90e-0beb00861da7]
description = "words other than themselves can be anagrams"
reimplements = "a0705568-628c-4b55-9798-82e4acde51ca"

[a6854f66-eec1-4afd-a137-62ef2870c051]
description = "handles case of greek letters"
include = false

[fd3509e5-e3ba-409d-ac3d-a9ac84d13296]
description = "different characters may have the same bytes"
include = false
2 changes: 1 addition & 1 deletion exercises/practice/anagram/anagram.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe 'Anagram', ->

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

xit 'anagrams must use all letters exactly once', ->
Expand Down
4 changes: 4 additions & 0 deletions exercises/practice/protein-translation/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,15 @@ description = "Translation stops if STOP codon in middle of three-codon sequence
[2c2a2a60-401f-4a80-b977-e0715b23b93d]
description = "Translation stops if STOP codon in middle of six-codon sequence"

[f6f92714-769f-4187-9524-e353e8a41a80]
description = "Sequence of two non-STOP codons does not translate to a STOP codon"

[1e75ea2a-f907-4994-ae5c-118632a1cb0f]
description = "Non-existing codon can't translate"

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

[9d73899f-e68e-4291-b1e2-7bf87c00f024]
description = "Incomplete RNA sequence can't translate"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ describe 'ProteinTranslation', ->
expected = ["Tryptophan", "Cysteine", "Tyrosine"]
expect(results).toEqual expected

xit 'Sequence of two non-STOP codons does not translate to a STOP codon', ->
results = ProteinTranslation.proteins("AUGAUG")
expected = ["Methionine", "Methionine"]
expect(results).toEqual expected

xit "Non-existing codon can't translate", ->
expect ->
ProteinTranslation.proteins("AAA")
Expand Down
12 changes: 12 additions & 0 deletions exercises/practice/reverse-string/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,15 @@ description = "a palindrome"

[b9e7dec1-c6df-40bd-9fa3-cd7ded010c4c]
description = "an even-sized word"

[1bed0f8a-13b0-4bd3-9d59-3d0593326fa2]
description = "wide characters"
include = false

[93d7e1b8-f60f-4f3c-9559-4056e10d2ead]
description = "grapheme cluster with pre-combined form"
include = false

[1028b2c1-6763-4459-8540-2da47ca512d9]
description = "grapheme clusters"
include = false

0 comments on commit 0243656

Please sign in to comment.