mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 14:34:39 +02:00
17 lines
371 B
Ruby
17 lines
371 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "test_helper"
|
|
|
|
return if Prism::BACKEND == :FFI
|
|
|
|
module Prism
|
|
class FormatErrorsTest < TestCase
|
|
def test_format_errors
|
|
assert_equal <<~ERROR, Debug.format_errors("<>", false)
|
|
> 1 | <>
|
|
| ^ unexpected '<', ignoring it
|
|
| ^ unexpected '>', ignoring it
|
|
ERROR
|
|
end
|
|
end
|
|
end
|