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

Language Ruby Lines 14
MD5 Hash 5ec52ac0df1a90fc85e245761907ad73 Estimated Cost $215 (why?)
Repository https://bitbucket.org/mediashelf/fedora-migrator View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
require 'facets/kernel/not_nil.rb'
require 'test/unit'

class TestKernelNotNil < Test::Unit::TestCase

  def test_not_nil?
    assert_equal(true,  5.not_nil?)
    assert_equal(true,  :x.not_nil?)
    assert_equal(false, nil.not_nil?)
    assert_equal(true,  false.not_nil?)
  end

end
Back to Top