Sha256: 599e4c3beba191d79b39b1e26750be8ae839961837da58a52b4833394ba48b1b
Contents?: true
Size: 485 Bytes
Versions: 5
Compression:
Stored size: 485 Bytes
Contents
require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__)) describe GirFFI::Builder::HashTableElementTypeProvider do describe "#elm_t" do it "returns a string with an array of the first two subtype tags" do builder = Object.new builder.extend GirFFI::Builder::HashTableElementTypeProvider stub(builder).subtype_tag(0) { :foo } stub(builder).subtype_tag(1) { :bar } assert_equal "[:foo, :bar]", builder.elm_t end end end
Version data entries
5 entries across 5 versions & 1 rubygems