Sha256: e4cc6923935972f598d2aee073d1eb683563ef3ac65a1f08416327074d0d7d48

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

require 'helper'

class EnumerableTest < MiniTest::Unit::TestCase
  def test_with_roman_index_method
    assert_equal [[:a, Roman(1)], [:b, Roman(2)], [:c, Roman(3)]],
                 [:a, :b, :c].map.with_roman_index.to_a
  end

  def test_with_roman_index_method_offset
    assert_equal [[:a, Roman(10)], [:b, Roman(11)], [:c, Roman(12)]],
                 [:a, :b, :c].map.with_roman_index(10).to_a
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
romaniac-0.0.1 test/ext/enumerable_test.rb