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