Module: Object::InMethod::Etest

Defined in:
lib/vex/base/object/in.rb

Instance Method Summary collapse

Instance Method Details

#test_inObject



20
21
22
23
24
# File 'lib/vex/base/object/in.rb', line 20

def test_in
  assert_equal true, "1".in?(%w(1 2 3))
  assert_equal false, 1.in?(%w(1 2 3))
  assert_equal false, 1.in?([])
end