Skip to content

Commit

Permalink
Hodor hodor hoodor. (sheepishgrin)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Keiser committed Jun 9, 2014
1 parent 4ca0e72 commit 5d0317d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hodorhodor/hodor/hodor_hodor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@

describe ::Hodor do
it 'Hodor hodor hodor HODOR! Hodor hodor hodor.' do
Hodor.hodor('hodor').split(/\s/).should == ["hOdOR", "hODor", "HoDOR,", "hoDor,", "HOdOR", "HODoR...", "hodOr!", "HODOR."]
Hodor.hodor('hodor').split(/\s/).map { |hodor| [ hodor[0,5], hodor.size > 5 ] }.should == [
[ "hOdOR", false ],
[ "hODor", false ],
[ "HoDOR", true ],
[ "hoDor", true ],
[ "HOdOR", false ],
[ "HODoR", true ],
[ "hodOr", true ],
[ "HODOR", true ]
]
end

it 'Hodor hodor hodor hodor.' do
Expand Down

0 comments on commit 5d0317d

Please sign in to comment.