require 'test_helper'

class FutureTest < Test::Unit::TestCase
  def test_future
    promise = Dharma.future() { true }
    
    assert promise.completed?
    assert promise.result
  end
end

require 'test_helper'

class FutureTest < Test::Unit::TestCase
  def test_future
    promise = Dharma.future() { true }
    
    assert promise.result

    assert promise.completed?
  end
end

Fix test to be correct
Fix test to be correct
