Sha256: 7a7e4d976c12bf90fc34a6690b76ccd83772a7e083dccb98a4adb8b398bfb690

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 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

3 entries across 3 versions & 1 rubygems

Version Path
iba-0.0.5 test/call_test.rb
iba-0.0.4 test/call_test.rb
iba-0.0.3 test/call_test.rb