From 30447917d785345dd99ee8cfe601b94ff413260c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 18 Apr 2020 14:06:23 +0300 Subject: Add: acceptance criteria for simple patterns This adds scenarios for regex patterns capture and simple pattern capture from scenario steps, and additionally makes use of simple patterns everywhere possible in the examples. --- echo.yaml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'echo.yaml') diff --git a/echo.yaml b/echo.yaml index f86159d..7be6e96 100644 --- a/echo.yaml +++ b/echo.yaml @@ -3,15 +3,18 @@ - when: user runs echo with arguments (?P.+) function: run_echo_with_args + regex: true - then: exit code is (?P\d+) function: exit_code_is + regex: true - then: standard output contains a newline function: stdout_is_a_newline - then: standard output contains "(?P.*)" function: stdout_is_text + regex: true - then: standard error is empty function: stderr_is_empty -- cgit v1.2.1