mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 14:05:02 +02:00

This should make it easier on the sync to determine what changed
and hopefully result in fewer merge conflicts that have to be
manually resolved.
17d82afbfc
21 lines
391 B
Ruby
21 lines
391 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "test_helper"
|
|
|
|
module YARP
|
|
class RipperCompatTest < Test::Unit::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
|