Sha256: 1712d2c439844e296687684964ddf77ecb0d300ea3763f4e4458876ac08ca5ce

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(FFakerTW::IdentificationTW, :id)

  def setup
    @tester = FFakerTW::IdentificationTW
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffakerTW-0.1.0 test/test_identification_tw.rb