<commit_before>$VERBOSE = true

require_relative '../lib/family'
require 'declare'

Declare do

  The Family.new(Integer) do |list|
    is []

    The (list << 7) do
      EQUAL list
    end<commit_msg>add tests<commit_after>$VERBOSE = true

require_relative '../lib/family'
require 'declare'

Declare do

  The Family.new(Integer) do |list|
    is []
    truthy list.family?(2)
    falthy list.family?('2')
    truthy list.similar?([2, 9])
    falthy list.similar?([2, nil])

    The (list << 7) do
      EQUAL list
    end
{'fraction_non_alphanumeric': 0.13740458015267176, 'fraction_numerical': 0.013358778625954198, 'mean_word_length': 2.917910447761194, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1623365', 'n_tokens_mistral': 200, 'n_tokens_neox': 185, 'n_words': 50}