This commit is contained in:
Shunsuke Shibayama 2023-05-10 00:12:59 +09:00
parent f8272af2d2
commit ace6c345dd
2 changed files with 8 additions and 1 deletions

View File

@ -34,6 +34,13 @@ print(dic["c"]) # ERR
arr = [1, 2, 3]
print(arr[4]) # ERR
# OK
for i in range(3):
print(arr[i])
# ERR
for i in range(4):
print(arr[i])
i, j = 1, 2
assert i == 1
assert j == 2

View File

@ -41,7 +41,7 @@ pub fn expect(file_path: &'static str, warns: usize, errors: usize) {
#[test]
fn exec_test() {
expect("tests/test.py", 0, 10);
expect("tests/test.py", 0, 11);
}
#[test]