<commit_before>require 'test_helper'
require 'pry'

class TestBuilder < Minitest::Test
  def setup
    @row_items = (1...3).map { |i| ClassTest.new(id: i, name: "Name#{i}", last_name: "Last Name #{i}") }
    @created_object = EasyAxlsx::Builder.build @row_items
  end

  def test_equal_rows
    package = Axlsx::Package.new
    building_object = EasyAxlsx::Building.new row_items: @row_items, package: package

    # FIXME: assert_equal error<commit_msg>comment test builder<commit_after>require 'test_helper'
require 'pry'

class TestBuilder < Minitest::Test
  def setup
    @row_items = (1...3).map { |i| ClassTest.new(id: i, name: "Name#{i}", last_name: "Last Name #{i}") }
    @created_object = EasyAxlsx::Builder.build @row_items
  end

  # TODO: Realize functional
  # def test_build_block
  #   @row_items = (1...3).map { |i| ClassTest.new(id: i, name: "Name#{i}", last_name: "Last Name #{i}") }

  #   a = EasyAxlsx::Builder.build do |f|
  #     f.widths 1.5, 2.5, 5.5
  #     f.headers "Id", "Name", "Last Name"
  #     f.rows @row_items
  #   end
  # end

  def test_equal_rows
    package = Axlsx::Package.new
    building_object = EasyAxlsx::Building.new row_items: @row_items, package: package

    # FIXME: assert_equal error
{'fraction_non_alphanumeric': 0.14769975786924938, 'fraction_numerical': 0.009685230024213076, 'mean_word_length': 3.7509578544061304, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6252045', 'n_tokens_mistral': 466, 'n_tokens_neox': 457, 'n_words': 108}