Sha256: e8ebb70acb9f9d778bb06c3d355e8a14fda68be1b31312f93df9393fe5c29743

Contents?: true

Size: 419 Bytes

Versions: 2

Compression:

Stored size: 419 Bytes

Contents

require File.expand_path('test_helper.rb', File.dirname(__FILE__))

# Test how the combinator calls the passed block.
class CallTest < Test::Unit::TestCase
  def test_empty_combinator
    assert_equal nil, combinator { }.call
  end

  def test_variable
    foo = 23
    assert_equal 23, combinator { foo }.call
  end

  def test_operator_call
    foo = 23
    assert_equal true, combinator { foo == 23 }.call
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iba-0.0.2 test/call_test.rb
iba-0.0.1 test/call_test.rb