Skip to content

Commit

Permalink
Update src/test/java/net/datafaker/providers/base/AviationTest.java
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey Nuyanzin <sergey.nuyanzin@aiven.io>
  • Loading branch information
L-Evg and snuyanzin committed Apr 17, 2023
1 parent 45f4912 commit f638003
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void flight_ICAO() {

@Test
void flight_IATA() {
assertThat(aviation.flight("IATA")).matches("[A-Z0-9]{2}[0-9]+");
assertThat(aviation.flight("IATA")).matches("[A-Z0-9]{2}\\d{1,4}");
}

@Test
Expand Down

0 comments on commit f638003

Please sign in to comment.