Skip to content

Commit

Permalink
added test cases for new comment parsing rules
Browse files Browse the repository at this point in the history
  • Loading branch information
leethomas committed May 15, 2016
1 parent 704537d commit 4bd340f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/test_rake_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,24 @@ def test_comment_setting
assert_equal "A Comment", t.comment
end

def test_comments_with_sentences
def test_comments_with_sentences_period
desc "Comment 1. Comment 2."
t = task(:t, :name, :rev)
assert_equal "Comment 1", t.comment
end

def test_comments_with_sentences_exclamation_mark
desc "An exclamation mark! Comment."
t = task(:t, :name, :rev)
assert_equal "An exclamation mark", t.comment
end

def test_comments_with_many_periods
desc "This is a test...I think ... testing. Comment."
t = task(:t, :name, :rev)
assert_equal "This is a test...I think ... testing", t.comment
end

def test_comments_with_tabbed_sentences
desc "Comment 1.\tComment 2."
t = task(:t, :name, :rev)
Expand Down

0 comments on commit 4bd340f

Please sign in to comment.