Skip to content
Browse files

Ensure that comments can be mutliple lines long and include witespace.

  • Loading branch information...
1 parent 7049039 commit a13f6dadcec969a59160846b0b19f89ea693eeea @adamsanderson committed Dec 17, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/test.rb
View
4 test/test.rb
@@ -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

0 comments on commit a13f6da

Please sign in to comment.
Something went wrong with that request. Please try again.