From 561659487f44b30f03ca115f1ca0c98e754f9915 Mon Sep 17 00:00:00 2001 From: Wolfgang Lutz Date: Tue, 19 Apr 2022 12:05:05 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d84d32b..fe1b51a 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ step("User is logged in as (.+)") { (match: Person) in func testLoggedInUser() { let nick = Person(name: "Nick") - Given("User is loggeed in as \(nick)") + Given("User is logged in as \(nick)") } ``` From 04473764f1296f7779a33ae9ead9c1b58f711a86 Mon Sep 17 00:00:00 2001 From: Wolfgang Lutz Date: Thu, 21 Apr 2022 09:02:58 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fe1b51a..47c416a 100644 --- a/README.md +++ b/README.md @@ -103,14 +103,14 @@ step("User is logged in as (.+)") { (match: Person) in ... } func testLoggedInUser() { let nick = Person(name: "Nick") - Given("User is loggeed in as \(Person(name: "Nick"))") + Given("User is logged in as \(Person(name: "Nick"))") } ``` will produce following logs: ``` -step User is loggeed in as {"name":"Nick"} +step User is logged in as {"name":"Nick"} ``` With named capture groups the step definition can look like this (notice that `match` is now a `StepMatches`)