Repository navigation
Release v7.25.0
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)andGenerateValue.Pattern(pattern, context, checksum)generate a value from a pattern such asORD-[A-HJ-NP-Z2-9]{4}-#{4,6}orINV-{yyyy}-#{7}. Every distinct value the pattern allows is equally likely, date segments come fromcontext.Nowin UTC, and an optionalChecksum(Luhn,Mod11,Mod97) appends check digits;Mod11never produces the excluded check value 10. See Patterns. (part of #1176)GenerateValue.Integer(minimum, maximum)draws an unbiased number from an inclusivelongrange, including the fulllongrange. (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)