more tests

This commit is contained in:
sagie gur ari 2020-01-18 17:20:27 +00:00
parent 3884b5c144
commit 9528e59696
2 changed files with 10 additions and 0 deletions

View file

@ -17,6 +17,11 @@ fn run_single_arg() {
test::run_script_and_error(vec![create("")], "out = greater_than 1", "out");
}
#[test]
fn run_not_numbers() {
test::run_script_and_error(vec![create("")], "out = greater_than a b", "out");
}
#[test]
fn run_equal() {
test::run_script_and_validate(

View file

@ -17,6 +17,11 @@ fn run_single_arg() {
test::run_script_and_error(vec![create("")], "out = less_than 1", "out");
}
#[test]
fn run_not_numbers() {
test::run_script_and_error(vec![create("")], "out = less_than a b", "out");
}
#[test]
fn run_equal() {
test::run_script_and_validate(