<commit_before>require 'test_helper'

class JqvrTest < ActiveSupport::TestCase
  
  include Jqvr
  
  test "truth" do
    assert_kind_of Module, Jqvr
  end
  
  test 'setup block yields self' do
    setup do |config|
      assert_equal Jqvr, config
    end
  end
  
  test "map_validator deve incluir o validator_map na array mapped_validators" do
    map_validator :presence, "required:true", :on
    mapped_validator=mapped_validators.first
    assert_equal mapped_validator.kind, :presence
    assert_equal mapped_validator.rule,"required:true"
    assert_equal mapped_validator.option,:on
  end
  
end<commit_msg>remove tos métodos pois separa em outros módulos<commit_after>require 'test_helper'

class JqvrTest < ActiveSupport::TestCase
  
  test "truth" do
    assert_kind_of Module, Jqvr
  end
  
  test 'setup block yields self' do
    setup do |config|
      assert_equal Jqvr, config
    end
  end
  
  # test "map_validator deve incluir o validator_map na array mapped_validators" do
  #   map_validator :presence, "required:true", :on
  #   mapped_validator=mapped_validators.first
  #   assert_equal mapped_validator.kind, :presence
  #   assert_equal mapped_validator.rule,"required:true"
  #   assert_equal mapped_validator.option,:on
  # end
  
end
{'fraction_non_alphanumeric': 0.06561264822134387, 'fraction_numerical': 0.0, 'mean_word_length': 3.9453125, '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': '610366', 'n_tokens_mistral': 416, 'n_tokens_neox': 428, 'n_words': 108}