Skip to content

Commit 24b9b51

Browse files
committed
added edge case
1 parent 2940406 commit 24b9b51

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

08_pig_latin/pig_latin_spec.rb

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,28 @@
99
end
1010

1111
it "should translate a word beginning with a vowel" do
12-
pending
1312
s = translate("apple")
1413
s.should == "appleay"
1514
end
1615

1716
it "should translate a two consonent word: stupid" do
18-
pending
1917
s = translate("stupid")
2018
s.should == "upidstay"
2119
end
2220

2321
it "should translate two words: eat pie" do
24-
pending
2522
s = translate("eat pie")
2623
s.should == "eatay iepay"
2724
end
2825

2926
it "should translate multiple words: the quick brown fox" do
30-
pending
3127
s = translate("the quick brown fox")
3228
s.should == "ethay ickquay ownbray oxfay"
3329
end
3430

31+
it "should not translate 'tu' as 'qu' " do
32+
s = translate("the quick turn")
33+
s.should == "ethay ickquay urntay"
34+
end
35+
3536
end

0 commit comments

Comments
 (0)