mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-15 01:45:02 +01:00
43 lines
379 B
Rust
43 lines
379 B
Rust
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";
|
|
"#
|
|
);
|
|
|
|
run_test!(
|
|
multiple_calls,
|
|
r#"
|
|
fn test1() {
|
|
print "correct1";
|
|
}
|
|
|
|
fn test2() {
|
|
print "correct2";
|
|
}
|
|
|
|
test1();
|
|
test2();
|
|
|
|
print "correct3";
|
|
"#
|
|
);
|