blob: af38d1e9463298b9ee4ee8ac2b2e2c8c7b78d3a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# frozen_string_literal: true
require_relative "test_helper"
module Prism
class RipperCompatTest < TestCase
def test_1_plus_2
assert_equivalent("1 + 2")
end
def test_2_minus_3
assert_equivalent("2 - 3")
end
private
def assert_equivalent(source)
assert_equal Ripper.sexp_raw(source), RipperCompat.sexp_raw(source)
end
end
end
|