Skip to content

Commit

Permalink
This level appeared to function incorrectly; the hint seemed to imply…
Browse files Browse the repository at this point in the history
… that the merged file should

contain the 'correct' version of the poem and nothing else, but it required the phrase 'cool poem' be
in the file. Updated to refuse anything but the 'correct' poem.
  • Loading branch information
Alex Van Liew authored and Alex committed Oct 27, 2013
1 parent 1033314 commit 742f013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions levels/conflict.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

txt = `cat poem.txt`
solved = false if txt =~ /[<>=]/
solved = false unless txt =~ /cool poem/
solved = false if txt =~ /cool poem/

solved
end

hint do
puts ["First you have to do a merge. Then resolve any conflicts and finish the merge", "Take a look at the sections on merge conflicts in 'git merge'.", "Remove the unnecessary lines in poem.txt."]
puts ["First you have to do a merge. Then resolve any conflicts and finish the merge", "Take a look at the sections on merge conflicts in 'git merge'.", "Remove the unnecessary lines in poem.txt, leaving the correct version of the poem."]
end

0 comments on commit 742f013

Please sign in to comment.