Skip to content

Various Dutch address and name improvements. - #805

Merged
bodiam merged 1 commit into
mainfrom
it_aint_much_if_it_aint_dutch
Apr 30, 2023
Merged

Various Dutch address and name improvements.#805
bodiam merged 1 commit into
mainfrom
it_aint_much_if_it_aint_dutch

Conversation

@bodiam

@bodiam bodiam commented Apr 30, 2023

Copy link
Copy Markdown
Contributor

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #805 (70d8949) into main (596561e) will decrease coverage by 0.06%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##               main     #805      +/-   ##
============================================
- Coverage     92.74%   92.68%   -0.06%     
+ Complexity     2654     2653       -1     
============================================
  Files           286      286              
  Lines          5264     5264              
  Branches        553      553              
============================================
- Hits           4882     4879       -3     
- Misses          241      243       +2     
- Partials        141      142       +1     
Impacted Files Coverage Δ
...n/java/net/datafaker/providers/base/BaseFaker.java 91.45% <ø> (ø)
.../java/net/datafaker/service/FakeValuesService.java 83.98% <ø> (ø)

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@RepeatedTest(100)
void dutchAddress() {
assertThat(NL_FAKER.address().stateAbbr()).matches("[A-Z]{2}");
assertThat(NL_FAKER.address().fullAddress()).matches("[A-Z].+, [0-9]{4} [A-Z]{2}, [A-Z].+");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it check for only uppercase?

@bodiam bodiam Apr 30, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should check that the fullAddress starts with an uppercase, followed by anything: [A-Z].+ (mind the dot)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I've ran this test approx 1_000_000 times, but I thought that was a bit too much to commit)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, i see, thanks

@bodiam
bodiam merged commit 2d7d983 into main Apr 30, 2023
@bodiam
bodiam deleted the it_aint_much_if_it_aint_dutch branch April 30, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants