Sha256: d3914225ae6577631584179622a598714d90c2bf1af1adbf817aed36b5a9e6e3
Contents?: true
Size: 528 Bytes
Versions: 6
Compression:
Stored size: 528 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') require 'hamster/set' describe Hamster::Set do describe "#product" do [ [[], 1], [[2], 2], [[1, 3, 5, 7, 11], 1155], ].each do |values, expected| describe "on #{values.inspect}" do before do original = Hamster.set(*values) @result = original.product end it "returns #{expected.inspect}" do @result.should == expected end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems