mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 06:25:31 +02:00
21 lines
453 B
Ruby
21 lines
453 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "test_helper"
|
|
|
|
module Prism
|
|
class ParseCommentsTest < TestCase
|
|
def test_parse_comments
|
|
comments = Prism.parse_comments("# foo")
|
|
|
|
assert_kind_of Array, comments
|
|
assert_equal 1, comments.length
|
|
end
|
|
|
|
def test_parse_file_comments
|
|
comments = Prism.parse_file_comments(__FILE__)
|
|
|
|
assert_kind_of Array, comments
|
|
assert_equal 1, comments.length
|
|
end
|
|
end
|
|
end
|