mirror of https://github.com/mtshiba/pylyzer
Update the test
This commit is contained in:
parent
401a6f9b84
commit
d5485229cc
|
|
@ -28,5 +28,8 @@ print(dic["c"]) # ERR
|
||||||
a = [1, 2, 3]
|
a = [1, 2, 3]
|
||||||
print(a[4]) # ERR
|
print(a[4]) # ERR
|
||||||
|
|
||||||
a_: str
|
i: int # OK
|
||||||
a_ = "aa" if True else "bb"
|
i = 1
|
||||||
|
i: str # ERR
|
||||||
|
i = "aa" if True else "bb"
|
||||||
|
i: str # OK
|
||||||
|
|
@ -27,7 +27,7 @@ pub fn expect(file_path: &'static str, warns: usize, errors: usize) {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn exec_test() {
|
fn exec_test() {
|
||||||
expect("tests/test.py", 0, 8);
|
expect("tests/test.py", 0, 9);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue