Sha256: 20f12297ce55dbf2cb8f0f8ce685e0a20b2424e9e5e0e47df06909bffce30440

Contents?: true

Size: 410 Bytes

Versions: 16

Compression:

Stored size: 410 Bytes

Contents

# Test for facets/symbol/generate

require 'facets/symbol/generate.rb'

require 'test/unit'

class TestSymbol < Test::Unit::TestCase

  def test_generate_nil
    assert_equal( :'-1', Symbol.generate )
    assert_equal( :'-2', Symbol.generate )
  end

  def test_generate_with_key
    assert_equal( :'orange-1', Symbol.generate('orange') )
    assert_equal( :'orange-2', Symbol.generate('orange') )
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/symbol/test_generate.rb
facets-2.8.3 test/core/symbol/test_generate.rb
facets-2.8.2 test/core/symbol/test_generate.rb
facets-2.8.1 test/core/symbol/test_generate.rb
facets-2.8.0 test/core/symbol/test_generate.rb
facets-2.7.0 test/core/symbol/test_generate.rb
facets-2.6.0 test/core/symbol/test_generate.rb
facets-2.4.0 test/symbol/test_generate.rb
facets-2.4.1 test/symbol/test_generate.rb
facets-2.4.2 test/core/symbol/test_generate.rb
facets-2.4.3 test/core/symbol/test_generate.rb
facets-2.4.4 test/core/symbol/test_generate.rb
facets-2.5.1 test/core/symbol/test_generate.rb
facets-2.5.0 test/core/symbol/test_generate.rb
facets-2.4.5 test/core/symbol/test_generate.rb
facets-2.5.2 test/core/symbol/test_generate.rb