Sha256: b0510717a23f1f95e16f434ab1c5a9cc3cc9e1306e94348a290e720bad0ac92e

Contents?: true

Size: 235 Bytes

Versions: 10

Compression:

Stored size: 235 Bytes

Contents

require 'facets/class/to_proc.rb'
require 'test/unit'

class TC_Class_ToProc < Test::Unit::TestCase

  Person = Struct.new(:name)

  def test_to_proc
    people = ["joe"].map(&Person)
    assert_equal("joe", people[0].name)
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/class/test_to_proc.rb
facets-2.8.3 test/core/class/test_to_proc.rb
facets-2.8.2 test/core/class/test_to_proc.rb
facets-2.8.1 test/core/class/test_to_proc.rb
facets-2.8.0 test/core/class/test_to_proc.rb
facets-2.7.0 test/core/class/test_to_proc.rb
facets-2.6.0 test/core/class/test_to_proc.rb
facets-2.5.0 test/core/class/test_to_proc.rb
facets-2.5.1 test/core/class/test_to_proc.rb
facets-2.5.2 test/core/class/test_to_proc.rb