mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +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
15 lines
341 B
Ruby
15 lines
341 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "test_helper"
|
|
|
|
return if YARP::BACKEND == :FFI
|
|
|
|
class MemsizeTest < Test::Unit::TestCase
|
|
def test_memsize
|
|
result = YARP.const_get(:Debug).memsize("2 + 3")
|
|
|
|
assert_equal 5, result[:length]
|
|
assert_kind_of Integer, result[:memsize]
|
|
assert_equal 6, result[:node_count]
|
|
end
|
|
end
|