From 782f233d7dd43233324e61f8aac504fc621d36da Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Fri, 30 Aug 2019 12:43:10 +0300 Subject: [PATCH] Add more string comparison tests Relates to #68 --- tests/integration.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration.rs b/tests/integration.rs index e5aaf9c..7957c9b 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -560,6 +560,10 @@ fn test_strings() { assert_eq!(eval("\"a\" + \"b\""), Ok(Value::from("ab"))); assert_eq!(eval("\"a\" > \"b\""), Ok(Value::from(false))); assert_eq!(eval("\"a\" < \"b\""), Ok(Value::from(true))); + assert_eq!(eval("\"xa\" > \"xb\""), Ok(Value::from(false))); + assert_eq!(eval("\"xa\" < \"xb\""), Ok(Value::from(true))); + assert_eq!(eval("\"{}\" != \"{}\""), Ok(Value::from(false))); + assert_eq!(eval("\"{}\" == \"{}\""), Ok(Value::from(true))); } #[test]