Skip to content

Various Dutch address and name improvements. #805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2023

Conversation

bodiam
Copy link
Contributor

@bodiam bodiam commented Apr 30, 2023

@codecov-commenter
Copy link

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
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?

Copy link
Contributor Author

@bodiam bodiam Apr 30, 2023

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
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
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