blob: 07c85ce329504a9fadb4e06f41f874243f307d0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
require_relative "test_helper"
return if YARP::BACKEND == :FFI
module YARP
class MemsizeTest < TestCase
def test_memsize
result = Debug.memsize("2 + 3")
assert_equal 5, result[:length]
assert_kind_of Integer, result[:memsize]
assert_equal 6, result[:node_count]
end
end
end
|