blob: 0087e1e9af07fd8a2c60171de0c2491ece84b378 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
require_relative "test_helper"
return if Prism::BACKEND == :FFI
module Prism
class ParseInlineCommentsTest < TestCase
def test_parse_inline_comments
comments = Prism.parse_inline_comments("# foo")
assert_kind_of Array, comments
assert_equal 1, comments.length
end
def test_parse_file_inline_comments
comments = Prism.parse_file_inline_comments(__FILE__)
assert_kind_of Array, comments
assert_equal 1, comments.length
end
end
end
|