Sha256: b366cfcadbac46cbe69784ccb30753c77b2bf1fdda5df9859423fff492722264
Contents?: true
Size: 469 Bytes
Versions: 8
Compression:
Stored size: 469 Bytes
Contents
require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__)) require 'gir_ffi/variable_name_generator' describe GirFFI::VariableNameGenerator do describe "#new_var" do it "generates a sequence of predictable variable names" do gen = GirFFI::VariableNameGenerator.new assert_equal "_v1", gen.new_var assert_equal "_v2", gen.new_var assert_equal "_v3", gen.new_var assert_equal "_v4", gen.new_var end end end
Version data entries
8 entries across 8 versions & 1 rubygems