Update the test

This commit is contained in:
Shunsuke Shibayama 2022-12-25 12:04:23 +09:00
parent 401a6f9b84
commit d5485229cc
2 changed files with 6 additions and 3 deletions

View file

@ -28,5 +28,8 @@ print(dic["c"]) # ERR
a = [1, 2, 3]
print(a[4]) # ERR
a_: str
a_ = "aa" if True else "bb"
i: int # OK
i = 1
i: str # ERR
i = "aa" if True else "bb"
i: str # OK

View file

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