Skip to content

Commit

Permalink
Ensure that comments can be mutliple lines long and include witespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsanderson committed Dec 17, 2010
1 parent 7049039 commit a13f6da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
require "#{direc}/../lib/method_source"

hello_source = "def hello; :hello; end\n"
hello_comment = "# A comment for hello"
hello_comment = "# A comment for hello\n\n# It spans two lines"
lambda_comment = "# This is a comment for MyLambda"
lambda_source = "MyLambda = lambda { :lambda }\n"
proc_source = "MyProc = Proc.new { :proc }\n"

# A comment for hello

# It spans two lines
def hello; :hello; end

# This is a comment for MyLambda
Expand Down

0 comments on commit a13f6da

Please sign in to comment.