mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-16 02:15:01 +01:00
add pretty print
This commit is contained in:
parent
1a77e710d5
commit
76af14a9f4
11 changed files with 114 additions and 5 deletions
|
|
@ -120,3 +120,23 @@ if not_run {
|
|||
}
|
||||
"#
|
||||
);
|
||||
|
||||
run_test!(
|
||||
fizzbuzz,
|
||||
r#"
|
||||
let i = 1;
|
||||
|
||||
while i < 100 {
|
||||
if i % 15 == 0 {
|
||||
print "FizzBuzz";
|
||||
} else if i % 5 == 0 {
|
||||
print "Buzz";
|
||||
} else if i % 3 == 0 {
|
||||
print "Fizz";
|
||||
} else {
|
||||
print i;
|
||||
}
|
||||
i = i + 1;
|
||||
}
|
||||
"#
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue