Add more string comparison tests

Relates to #68
This commit is contained in:
Sebastian Schmidt 2019-08-30 12:43:10 +03:00
parent 15786378bc
commit 782f233d7d

View File

@ -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]