Skip to main content

test_stream_pattern_char_class

Function test_stream_pattern_char_class 

Source
pub async fn test_stream_pattern_char_class<F, S>(
    make_store: F,
) -> ContractTestResult
where F: Fn() -> S + Send + Sync + Clone + 'static, S: EventStore + EventReader + Send + Sync + 'static,
Expand description

Contract test: Glob [0-9] character class matches a single digit.

Per ADR-0047, a bracketed character class [...] matches one character from the set. Pattern account-[0-9]* must match streams whose suffix begins with a digit and reject those beginning with a non-digit.