Sha256: c4cbe683411f6abb25a8bdb6845670784c9d065615073dcf905a451a9004b2c6

Contents?: true

Size: 335 Bytes

Versions: 4

Compression:

Stored size: 335 Bytes

Contents

# frozen_string_literal: true

require 'helper'

class TestFakerIdentificationTW < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(FFaker::IdentificationTW, :id)

  def setup
    @tester = FFaker::IdentificationTW
  end

  def test_id
    assert_match(/\A[A-Z][12]\d{8}\z/, @tester.id)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_identification_tw.rb
ffaker-2.17.0 test/test_identification_tw.rb
ffaker-2.16.0 test/test_identification_tw.rb
ffaker-2.15.0 test/test_identification_tw.rb