MCPcopy Create free account
hub / github.com/DiUS/java-faker / testDigits

Method testDigits

src/test/java/com/github/javafaker/NumberTest.java:321–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319 }
320
321 @Test
322 public void testDigits() {
323 String digits = faker.number().digits(5);
324
325 assertThat(digits, matchesRegularExpression("[0-9]{5}"));
326 }
327
328 /**
329 * Over the series of numbers identified from RANDOMIZATION_QUALITY_RANGE_START to

Callers

nothing calls this directly

Calls 3

digitsMethod · 0.80
numberMethod · 0.80

Tested by

no test coverage detected