Sha256: cb5955d2739c6be315ce59f66cb8c8cdf2a4d07676f57d9447eb8e00ed7d0908

Contents?: true

Size: 436 Bytes

Versions: 3

Compression:

Stored size: 436 Bytes

Contents

require 'test/unit'
require_relative '../generated/ImmutableQueue'
require_relative '../Test/test_helper'


class ImmutableQueueTest < Test::Unit::TestCase

  def test_sunny
    queue = ImmutableQueue::empty.push 1
    queue = queue.push(2)
    f, queue = queue.pop()
    refute_nil(queue)
    s, queue = queue.pop()
    assert_equal(1, f)
    assert_equal(2, s)
    assert_equal(ImmutableQueue::empty, queue)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
maroon-0.8.0 Test/ImmutableQueue_test.rb
maroon-0.7.1 Test/ImmutableQueue_test.rb
maroon-0.7.0 Test/ImmutableQueue_test.rb