<commit_before># encoding: utf-8

require 'helper'

class TestAddressININ < Test::Unit::TestCase
  def test_in_state
    assert_match /[ a-z]/, FFaker::AddressIN.state
  end

  def test_in_state_abbr
    assert_match /[A-Z]/, FFaker::AddressIN.state_abbr
  end

  def test_in_union_territory
    assert_match /[ a-z]/, FFaker::AddressIN.union_territory
  end

  def test_in_union_territory_abbr
    assert_match /[A-Z]/, FFaker::AddressIN.union_territory_abbr
  end

  def test_in_state_and_union_territory
    assert_match /[ a-z]/, FFaker::AddressIN.state_and_union_territory
  end

  def test_in_state_and_union_territory_abbr
    assert_match /[A-Z]/, FFaker::AddressIN.state_and_union_territory_abbr
  end

  def test_pincode
    assert_match /[0-9]{6}/, FFaker::AddressIN.pincode
  end

  def test_zip_code
    assert_match /[0-9]{6}/, FFaker::AddressIN.pincode
  end

  def test_in_country
    assert_equal "India", FFaker::AddressIN.country
  end

  def test_in_country_code
    assert_equal "IN", FFaker::AddressIN.country_code
  end

  def test_in_time_zone
    assert_equal "Asia/Kolkata", FFaker::AddressIN.time_zone
  end

end<commit_msg>Better regex to the test class<commit_after># encoding: utf-8

require 'helper'

class TestAddressININ < Test::Unit::TestCase
  def test_in_state
    assert_match /\A[A-Z][ A-Za-z]*\z/, FFaker::AddressIN.state
  end

  def test_in_state_abbr
    assert_match /\A[A-Z]{2}\z/, FFaker::AddressIN.state_abbr
  end

  def test_in_union_territory
    assert_match /\A[A-Z][ A-Za-z]*\z/, FFaker::AddressIN.union_territory
  end

  def test_in_union_territory_abbr
    assert_match /\A[A-Z]{2}\z/, FFaker::AddressIN.union_territory_abbr
  end

  def test_in_state_and_union_territory
    assert_match /\A[A-Z][ A-Za-z]*\z/, FFaker::AddressIN.state_and_union_territory
  end

  def test_in_state_and_union_territory_abbr
    assert_match /\A[A-Z]{2}\z/, FFaker::AddressIN.state_and_union_territory_abbr
  end

  def test_pincode
    assert_match /[0-9]{6}/, FFaker::AddressIN.pincode
  end

  def test_zip_code
    assert_match /[0-9]{6}/, FFaker::AddressIN.pincode
  end

  def test_in_country
    assert_equal "India", FFaker::AddressIN.country
  end

  def test_in_country_code
    assert_equal "IN", FFaker::AddressIN.country_code
  end

  def test_in_time_zone
    assert_equal "Asia/Kolkata", FFaker::AddressIN.time_zone
  end

end
{'fraction_non_alphanumeric': 0.10466582597730138, 'fraction_numerical': 0.007145859604875998, 'mean_word_length': 4.219298245614035, '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': '4788602', 'n_tokens_mistral': 975, 'n_tokens_neox': 892, 'n_words': 157}