Sha256: a5c91946885917ed6ae54b98c30595d453a67b8bb86767b93ebe62787f0efc3c

Contents?: true

Size: 363 Bytes

Versions: 4

Compression:

Stored size: 363 Bytes

Contents

require File.expand_path("../test_helper", __FILE__)
require 'freighthopper/fixnum'

class FixnumTest < Test::Unit::TestCase
  context 'of' do
    should 'give me five of what the block returns' do
      assert_equal %w(hello hello), 2.of { "hello" }
    end

    should 'yield the index' do
      assert_equal %w( 0 1 2 3 ), 4.of {|i| i.to_s }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
freighthopper-0.1.14 test/fixnum_test.rb
freighthopper-0.1.13 test/fixnum_test.rb
freighthopper-0.1.12 test/fixnum_test.rb
freighthopper-0.1.11 test/fixnum_test.rb