MCPcopy Create free account
hub / github.com/apache/arrow / test_equal

Method test_equal

c_glib/test/test-tensor.rb:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 end
42
43 def test_equal
44 data = Arrow::Buffer.new(@raw_data.pack("c*"))
45 strides = []
46 names = ["a", "b", "c"]
47 other_tensor = Arrow::Tensor.new(Arrow::Int8DataType.new,
48 data,
49 @shape,
50 strides,
51 names)
52 assert_equal(@tensor,
53 other_tensor)
54 end
55
56 def test_value_data_type
57 assert_equal(Arrow::Int8DataType, @tensor.value_data_type.class)

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected