Skip to content

Release v7.25.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 08:27
4129d83

Concepts can now generate readable codes and random numbers with the same semantics as Screenplay's pattern and random generation strategies, and validate check digits.

Added

  • GenerateValue.Pattern(pattern, checksum) and GenerateValue.Pattern(pattern, context, checksum) generate a value from a pattern such as ORD-[A-HJ-NP-Z2-9]{4}-#{4,6} or INV-{yyyy}-#{7}. Every distinct value the pattern allows is equally likely, date segments come from context.Now in UTC, and an optional Checksum (Luhn, Mod11, Mod97) appends check digits; Mod11 never produces the excluded check value 10. See Patterns. (part of #1176)
  • GenerateValue.Integer(minimum, maximum) draws an unbiased number from an inclusive long range, including the full long range. (part of #1176)
  • GenerateValue.HasValidChecksum(value, checksum) checks that a value ends with the correct Luhn, mod 11 or ISO 7064 MOD 97-10 check digits. (part of #1176)