Skip to content

Commit 770b01c

Browse files
authored
Update parallel_letter_frequency_test.rb (#1640)
Two changes: 1. I think the `texts` should always be an array. It's a string in one case. 2. There is punctuation used in the later tests that does not occur in the punctuation one.
1 parent d6f34f8 commit 770b01c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/practice/parallel-letter-frequency/parallel_letter_frequency_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_ignore_whitespace
6161

6262
def test_ignore_punctuation
6363
skip
64-
texts = ['!', '?', ';', ',', '.', '-', "'", '"', '/', ':', '{}', '[]', '()']
64+
texts = ['!', '?', ';', ',', '.', '-', '—', '’', "'", '"', '/', ':', '{}', '[]', '()']
6565
expected = {}
6666
actual = ParallelLetterFrequency.count(texts)
6767
assert_equal expected, actual
@@ -86,7 +86,7 @@ def test_unicode_letters
8686
def test_combo_lower_upper_punctuation_whitespace
8787
skip
8888
ruby_wiki = File.read(File.expand_path('data/ruby_wiki.txt', __dir__))
89-
texts = ruby_wiki
89+
texts = [ruby_wiki]
9090
expected = {
9191
"r" => 34,
9292
"u" => 20,

0 commit comments

Comments
 (0)