diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-06-20 12:46:15 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-06-20 12:46:15 +0100 |
commit | b0040f567142b5d53f675f4d67a21928d628e27e (patch) | |
tree | 0b60673f2a96af947e1b2f5f7610f51a380e0f41 | |
parent | 37565e21534ec83eda0088d55d1680f7e71ab6f1 (diff) | |
download | subplot-b0040f567142b5d53f675f4d67a21928d628e27e.tar.gz |
test: Ensure case insensitive bindings work
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r-- | src/bindings.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bindings.rs b/src/bindings.rs index 84b331b..617d725 100644 --- a/src/bindings.rs +++ b/src/bindings.rs @@ -410,11 +410,11 @@ mod test_bindings { #[test] fn adds_from_yaml() { let yaml = " -- given: I am Tomjon +- GIVEN: I am Tomjon function: set_name - when: I declare myself king - function: declare_king -- then: there is applause + Function: declare_king +- tHEn: there is applause function: check_for_applause "; let mut bindings = Bindings::new(); @@ -429,9 +429,9 @@ mod test_bindings { #[test] fn add_from_yaml_notices_multiple_keywords() { let yaml = " -- given: I am Tomjon - when: I am indeed Tomjon - function: set_name +- Given: I am Tomjon + wheN: I am indeed Tomjon + FUNCTION: set_name "; match Bindings::new().add_from_yaml(&yaml) { Ok(_) => unreachable!(), |