Add test for return value.

This commit is contained in:
nora 2022-05-30 18:49:05 +02:00
parent 3ac2746658
commit eaa2f3527c
4 changed files with 24 additions and 0 deletions

View file

@ -54,6 +54,18 @@ fancy_print("correct");
"#
);
run_test!(
return_value,
r#"
fn get_value() {
return 1;
}
let x = get_value();
print x;
"#
);
run_test!(
#[ignore]
parameters_and_return,