summaryrefslogtreecommitdiff
path: root/test/ruby_api_test.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-08-15 10:00:54 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-08-16 17:47:32 -0700
commit3873b1eb39a2070937dc62ac47f8b96df54a72fc (patch)
tree42d174abb24a5addef2e854882191dec48f27229 /test/ruby_api_test.rb
parent957cd369fa38915241e0b66e852f66ac516de664 (diff)
Resync YARP
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8226
Diffstat (limited to 'test/ruby_api_test.rb')
-rw-r--r--test/ruby_api_test.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/ruby_api_test.rb b/test/ruby_api_test.rb
deleted file mode 100644
index ea18fbb35a..0000000000
--- a/test/ruby_api_test.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-# frozen_string_literal: true
-
-require "yarp_test_helper"
-
-class YARPRubyAPITest < Test::Unit::TestCase
- def test_ruby_api
- filepath = __FILE__
- source = File.read(filepath, binmode: true, external_encoding: Encoding::UTF_8)
-
- assert_equal YARP.lex(source, filepath).value, YARP.lex_file(filepath).value
-
- assert_equal YARP.dump(source, filepath), YARP.dump_file(filepath)
-
- serialized = YARP.dump(source, filepath)
- ast1 = YARP.load(source, serialized).value
- ast2 = YARP.parse(source, filepath).value
- ast3 = YARP.parse_file(filepath).value
-
- assert_equal_nodes ast1, ast2
- assert_equal_nodes ast2, ast3
- end
-end