feat: replace end2end test and add more test
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
[expected_return_code]
|
||||
55
|
||||
|
||||
[code]
|
||||
fn main() -> i32 {
|
||||
let n = 10;
|
||||
let a = 0;
|
||||
let b = 1;
|
||||
let i = 0;
|
||||
|
||||
while i < n {
|
||||
let temp = a + b;
|
||||
a = b;
|
||||
b = temp;
|
||||
i = i + 1;
|
||||
}
|
||||
|
||||
return a;
|
||||
}
|
||||
Reference in New Issue
Block a user