# File test/core_test.rb, line 89 def test_comment string = "This is a new comment!" source = "<!--#{string}-->" comment = Comment.new string out = "" comment.write( out ) assert_equals source, out comment2 = Comment.new comment assert_equals comment, comment2 comment2 = Comment.new SourceFactory.create_from( source ) assert_equals comment, comment2 end