Skip to content

Random country code returned for address with locale en-US #231

Closed
@kukido

Description

Looks like address generation got broken in version 1.14.0

@Test
fun address() {
    // 1.14.0 - broken
    // 1.13.0 - works
    val faker = Faker(
        fakerConfig { locale = "en-US" }
    )
    val address = faker.address
    assertThat(address.countryCode()).isEqualTo("US")
}
expected:<"[US]"> but was:<"[AF]">
Expected :"[US]"
Actual   :"[AF]"

Metadata

Assignees

No one assigned

    Labels

    core 🧬Issue related to :core moduleenhancement 🚀New feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions