mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-14 17:35:03 +01:00
return try
This commit is contained in:
parent
f2bff066c6
commit
6a8eb89381
8 changed files with 86 additions and 11 deletions
25
tests/functions.rs
Normal file
25
tests/functions.rs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
mod common;
|
||||
|
||||
run_test!(
|
||||
single_call,
|
||||
r#"
|
||||
fn test() {
|
||||
print "correct";
|
||||
}
|
||||
|
||||
test();
|
||||
"#
|
||||
);
|
||||
|
||||
run_test!(
|
||||
single_call_expect_return,
|
||||
r#"
|
||||
fn test() {
|
||||
print "correct1";
|
||||
}
|
||||
|
||||
test();
|
||||
|
||||
print "correct2";
|
||||
"#
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue