mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-14 17:35:03 +01:00
Add test for return value.
This commit is contained in:
parent
3ac2746658
commit
eaa2f3527c
4 changed files with 24 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue