fedora-migrator /vendor/gems/facets-2.4.5/test/core/kernel/test_returning.rb

Language Ruby Lines 17
MD5 Hash 86b6d5bd731bcba8bd3a25e3f53ed591 Estimated Cost $237 (why?)
Repository https://bitbucket.org/mediashelf/fedora-migrator View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# 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
Back to Top