serpro69 / kotlin-faker

Port of a popular ruby faker gem written in kotlin. Generate realistically looking fake data such as names, addresses, banking details, and many more, that can be used for testing and data anonymization purposes.
https://serpro69.github.io/kotlin-faker/
MIT License
472 stars 44 forks source link

Update existing dict files #176

Closed serpro69 closed 1 year ago

kukido commented 7 months ago

Looks like when country_code was removed from the address, then addresses generated with en-US are created with random country codes instead.

@Test
fun faker() {
    // 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]"