mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Make sure there is no call on the right hand side
This commit is contained in:
parent
ebb6326503
commit
62459d05b5
1 changed files with 8 additions and 0 deletions
|
@ -509,3 +509,11 @@ fn test_date_time_formats() {
|
|||
test_starts_with("#1970-01-01 10:30 GMT#", "1970-01-01 10:30:00 GMT");
|
||||
test_starts_with("(now-#10:30#) - (now-#11:30#)", "59 minute, 59.99");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_no_calls_on_rhs() {
|
||||
test(
|
||||
"1 -> sin(2)",
|
||||
"Calls are not allowed in the right hand side of conversions",
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue