diff --git a/lib/locales/da-DK.yml b/lib/locales/da-DK.yml index e5889f452d..a9c14a30f7 100644 --- a/lib/locales/da-DK.yml +++ b/lib/locales/da-DK.yml @@ -565,3 +565,5 @@ da-DK: - Bænk - Ur - Pung + vehicle: + license_plate: '[A-Z]{2}[0-9]{5}' diff --git a/test/test_da_dk_locale.rb b/test/test_da_dk_locale.rb index 71639116e2..6bf5e2b6a2 100644 --- a/test/test_da_dk_locale.rb +++ b/test/test_da_dk_locale.rb @@ -60,4 +60,8 @@ def test_da_dk_counrty_code assert_match(/(\+45)[\s](\d\d[\s-]?){4}$/, Faker::PhoneNumber.phone_number_with_country_code) assert_match(/(\+45)[\s](\d\d[\s-]?){4}$/, Faker::PhoneNumber.cell_phone_with_country_code) end + + def test_da_dk_license_plate + assert_match(/[A-Z]{2}[0-9]{5}/, Faker::Vehicle.license_plate) + end end