Sha256: 557e94edca70483484fbb83ce2838b53cccbac9a25d1a869ff0b3fa3b1412200

Contents?: true

Size: 244 Bytes

Versions: 3

Compression:

Stored size: 244 Bytes

Contents

# Test for facets/symbol/shadow

require 'facets/symbol/shadow.rb'

require 'test/unit'

class TestSymbol < Test::Unit::TestCase

  def test_shadow
    assert_equal( :__a__, :a.shadow(2) )
    assert_equal( :_a_, :__a__.shadow(-1) )
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-2.2.0 test/unit/symbol/test_shadow.rb
facets-2.2.1 test/unit/symbol/test_shadow.rb
facets-2.3.0 test/core/symbol/test_shadow.rb