Sha256: ff1b29448d395d96f3d5e3ef2b5b01e6734dd934f08a0c50eacd81cb5408c60e

Contents?: true

Size: 344 Bytes

Versions: 5

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

require_relative '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

5 entries across 5 versions & 1 rubygems

Version Path
ffaker-2.23.0 test/test_identification_tw.rb
ffaker-2.22.0 test/test_identification_tw.rb
ffaker-2.21.0 test/test_identification_tw.rb
ffaker-2.20.0 test/test_identification_tw.rb
ffaker-2.19.0 test/test_identification_tw.rb