Sha256: 65636c0d3f53ea9ff5b46d58623cd9619c16c240fd53cce93ac440408256642a

Contents?: true

Size: 299 Bytes

Versions: 19

Compression:

Stored size: 299 Bytes

Contents

# Test for facets/kernel/returning.rb

require 'facets/kernel/returning.rb'
require 'test/unit'

class TC_Kernel < Test::Unit::TestCase

  def test_returning
    foo = returning( values = [] ) do
      values << 'bar'
      values << 'baz'
    end
    assert_equal( ['bar', 'baz'], foo )
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/kernel/test_returning.rb
facets-2.8.3 test/core/kernel/test_returning.rb
facets-2.8.2 test/core/kernel/test_returning.rb
facets-2.8.1 test/core/kernel/test_returning.rb
facets-2.8.0 test/core/kernel/test_returning.rb
facets-2.7.0 test/core/kernel/test_returning.rb
facets-2.6.0 test/core/kernel/test_returning.rb
facets-2.3.0 test/core/kernel/test_returning.rb
facets-2.2.0 test/unit/kernel/test_returning.rb
facets-2.2.1 test/unit/kernel/test_returning.rb
facets-2.4.0 test/kernel/test_returning.rb
facets-2.4.1 test/kernel/test_returning.rb
facets-2.4.4 test/core/kernel/test_returning.rb
facets-2.4.3 test/core/kernel/test_returning.rb
facets-2.4.2 test/core/kernel/test_returning.rb
facets-2.5.0 test/core/kernel/test_returning.rb
facets-2.4.5 test/core/kernel/test_returning.rb
facets-2.5.1 test/core/kernel/test_returning.rb
facets-2.5.2 test/core/kernel/test_returning.rb