feat: replace end2end test and add more test
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
[expected_return_code]
|
||||
15
|
||||
|
||||
[code]
|
||||
fn main() -> i32 {
|
||||
let val = 0;
|
||||
|
||||
if true {
|
||||
val = 10;
|
||||
} else {
|
||||
val = 20;
|
||||
}
|
||||
|
||||
if false {
|
||||
val = val + 100;
|
||||
} else {
|
||||
val = val + 5;
|
||||
}
|
||||
|
||||
return val;
|
||||
}
|
||||
Reference in New Issue
Block a user