<commit_before>require "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<commit_msg>Updated style of Set#product spec<commit_after>require "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
        it "returns #{expected.inspect}" do
          Hamster.set(*values).product.should == expected
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.13774403470715835, 'fraction_numerical': 0.028199566160520606, 'mean_word_length': 2.160958904109589, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '957669', 'n_tokens_mistral': 313, 'n_tokens_neox': 288, 'n_words': 86}