mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-16 02:15:01 +01:00
add more tests
This commit is contained in:
parent
61fa5434f9
commit
386ed99810
24 changed files with 61 additions and 31 deletions
|
|
@ -23,3 +23,21 @@ test();
|
|||
print "correct2";
|
||||
"#
|
||||
);
|
||||
|
||||
run_test!(
|
||||
multiple_calls,
|
||||
r#"
|
||||
fn test1() {
|
||||
print "correct1";
|
||||
}
|
||||
|
||||
fn test2() {
|
||||
print "correct2";
|
||||
}
|
||||
|
||||
test1();
|
||||
test2();
|
||||
|
||||
print "correct3";
|
||||
"#
|
||||
);
|
||||
|
|
|
|||
5
tests/snapshots/functions__multiple_calls.snap
Normal file
5
tests/snapshots/functions__multiple_calls.snap
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
source: tests/functions.rs
|
||||
expression: output
|
||||
---
|
||||
"correct1\ncorrect2\ncorrect3\n"
|
||||
Loading…
Add table
Add a link
Reference in a new issue