summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-06-20 12:06:55 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-06-20 12:06:55 +0100
commitf70647d4f57c2adf93daec84c2f510241b60f70d (patch)
treeda2a6ffef17d866f35fced4e202c3c8a634d64d5
parentf9e5f30e17f22240dee3a6b99fafea7ec0a0a066 (diff)
downloadsubplot-f70647d4f57c2adf93daec84c2f510241b60f70d.tar.gz
feat: Scenario keyword caseless matching
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r--src/steps.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/steps.rs b/src/steps.rs
index 1cbdfe5..c2e8374 100644
--- a/src/steps.rs
+++ b/src/steps.rs
@@ -55,7 +55,7 @@ impl ScenarioStep {
_ => return Err(SubplotError::NoStepKeyword(text.to_string())),
};
- let kind = match keyword {
+ let kind = match keyword.to_ascii_lowercase().as_str() {
"given" => StepKind::Given,
"when" => StepKind::When,
"then" => StepKind::Then,