<commit_before>require "spec_helper"
require "hamster/vector"

describe Hamster::Vector do
  [:dup, :clone].each do |method|
    [
      [],
      ["A"],
      %w[A B C],
    ].each do |values|

      describe "on #{values.inspect}" do
        before do
          @original = Hamster.vector(*values)
          @result = @original.send(method)
        end

        it "returns self" do
          @result.should equal(@original)
        end
      end
    end
  end
end<commit_msg>Updated style of Vector#dup spec, added a test case<commit_after>require "spec_helper"
require "hamster/vector"

describe Hamster::Vector do
  [:dup, :clone].each do |method|
    [
      [],
      ["A"],
      %w[A B C],
      (1..32),
    ].each do |values|
      describe "on #{values.inspect}" do
        let(:vector) { Hamster.vector(*values) }

        it "returns self" do
          vector.send(method).should equal(vector)
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.13199577613516367, 'fraction_numerical': 0.0031678986272439284, 'mean_word_length': 2.0980392156862746, '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': '1199989', 'n_tokens_mistral': 306, 'n_tokens_neox': 299, 'n_words': 83}