Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unique_words = File.read("words.txt").downcase.split.sort.uniq.length
- assertThat(yoda).isInstanceOf(Jedi.class)
- .isEqualTo(foundJedi)
- .isNotEqualTo(foundSith);
- # bowling_spec.rb
- require 'bowling'
- describe Bowling do
- before(:each) do
- @bowling = Bowling.new
- end
- it "should score 0 for gutter game" do
- 20.times { @bowling.hit(0) }
- @bowling.score.should == 0
- end
- end
Add Comment
Please, Sign In to add comment