Skip to content

Commit

Permalink
Remove non-canonical tests for pig-latin (#1492)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegillet authored Jun 9, 2024
1 parent 3fbe6c0 commit 6b6bc5b
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions exercises/practice/pig-latin/test/pig_latin_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ defmodule PigLatinTest do
end
end

describe "first consonant letters and ay are moved to the end of words that start with consonants" do
describe "first letter and ay are moved to the end of words that start with consonants" do
@tag :pending
test "word beginning with p" do
assert PigLatin.translate("pig") == "igpay"
Expand All @@ -53,24 +53,9 @@ defmodule PigLatinTest do
test "word beginning with q without a following u" do
assert PigLatin.translate("qat") == "atqay"
end

@tag :pending
test "word beginning with two consonants" do
assert PigLatin.translate("pleasure") == "easureplay"
end

@tag :pending
test "word beginning with three consonants" do
assert PigLatin.translate("stringify") == "ingifystray"
end

@tag :pending
test "word beginning with a series of consonants : aliens speak Pig Latin too" do
assert PigLatin.translate("zkrrkrkrkrzzzkewk") == "ewkzkrrkrkrkrzzzkay"
end
end

describe "consecutive consonants are treated like a single consonant" do
describe "some letter clusters are treated like a single consonant" do
@tag :pending
test "word beginning with ch" do
assert PigLatin.translate("chair") == "airchay"
Expand Down Expand Up @@ -102,26 +87,16 @@ defmodule PigLatinTest do
end
end

describe "'x' and 'y', when followed by a consonant, are treated like a vowel" do
describe "some letter clusters are treated like a single vowel" do
@tag :pending
test "word beginning with y, followed by a consonant" do
assert PigLatin.translate("yttria") == "yttriaay"
end

@tag :pending
test "word beginning with y, followed by another consonant" do
assert PigLatin.translate("yddria") == "yddriaay"
end

@tag :pending
test "word beginning with xr" do
assert PigLatin.translate("xray") == "xrayay"
end

@tag :pending
test "word beginning with xb" do
assert PigLatin.translate("xbot") == "xbotay"
end
end

describe "position of y in a word determines if it is a consonant or a vowel" do
Expand Down

0 comments on commit 6b6bc5b

Please sign in to comment.