Sha256: f21944091e87174127a86913a8264bdcfdfe0f7adfdcc465468bccc6d2f6faf3

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

require 'test/unit'
require 'yargi'

module Yargi
  class ElementSetTest < Test::Unit::TestCase

    def test_flatten
      e = ElementSet[ElementSet[1, 2, 3], ElementSet[4, 5, 6]]
      assert_equal ElementSet[1, 2, 3, 4, 5, 6], e.flatten

      e = EdgeSet[EdgeSet[1, 2, 3], EdgeSet[4, 5, 6], 7]
      assert EdgeSet===e
      assert_equal EdgeSet[1, 2, 3, 4, 5, 6, 7], e.flatten
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yargi-0.2.0 test/yargi/element_set_test.rb