Sha256: 19d23c82fdd5ad5edc455c0156f000cd6076e93c51046f45c53edef1d65b27dd

Contents?: true

Size: 403 Bytes

Versions: 28

Compression:

Stored size: 403 Bytes

Contents

require 'test/unit'
require 'promise/v2'

class TestPromiseValue < Test::Unit::TestCase
  def test_resolves_the_promise_with_the_given_value
    assert_equal(PromiseV2.value(23).value, 23)
  end

  def test_marks_the_promise_as_realized
    assert_equal(PromiseV2.value(23).realized?, true)
  end

  def test_marks_the_promise_as_resolved
    assert_equal(PromiseV2.value(23).resolved?, true)
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 test/opal/promisev2/test_value.rb
opal-1.8.2 test/opal/promisev2/test_value.rb
opal-1.8.1 test/opal/promisev2/test_value.rb
opal-1.8.0 test/opal/promisev2/test_value.rb
opal-1.8.0.beta1 test/opal/promisev2/test_value.rb
opal-1.7.4 test/opal/promisev2/test_value.rb
opal-1.8.0.alpha1 test/opal/promisev2/test_value.rb
opal-1.7.3 test/opal/promisev2/test_value.rb
opal-1.7.2 test/opal/promisev2/test_value.rb
opal-1.7.1 test/opal/promisev2/test_value.rb
opal-1.7.0 test/opal/promisev2/test_value.rb
opal-1.7.0.rc1 test/opal/promisev2/test_value.rb
opal-1.6.1 test/opal/promisev2/test_value.rb
opal-1.6.0 test/opal/promisev2/test_value.rb
opal-1.6.0.rc1 test/opal/promisev2/test_value.rb
opal-1.6.0.alpha1 test/opal/promisev2/test_value.rb
opal-1.5.1 test/opal/promisev2/test_value.rb
opal-1.5.0 test/opal/promisev2/test_value.rb
opal-1.5.0.rc1 test/opal/promisev2/test_value.rb
opal-1.4.1 test/opal/promisev2/test_value.rb