Sha256: 70e1d2cec545427e8566c3dcc7b8c1793e23428a64c0d4cffea7e151c643d414

Contents?: true

Size: 421 Bytes

Versions: 22

Compression:

Stored size: 421 Bytes

Contents

require 'gir_ffi_test_helper'

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

22 entries across 22 versions & 1 rubygems

Version Path
gir_ffi-0.7.7 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.7.6 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.7.5 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.7.4 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.7.3 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.7.2 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.7.1 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.7.0 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.6.7 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.6.6 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.6.5 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.6.4 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.6.3 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.6.2 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.6.1 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.6.0 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.5.2 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.5.1 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.5.0 test/gir_ffi/variable_name_generator_test.rb
gir_ffi-0.4.3 test/gir_ffi/variable_name_generator_test.rb