浏览代码

add more tests

blueloveTH 1 年之前
父节点
当前提交
70b536ea1b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/99_builtin_func.py

+ 2 - 2
tests/99_builtin_func.py

@@ -276,10 +276,10 @@ try:
 except:
 except:
     pass
     pass
 
 
-assert (1,2,3).__contains__(5) == False
-
 assert (1,2,2,3,3,3).count(3) == 3
 assert (1,2,2,3,3,3).count(3) == 3
 assert (1,2,2,3,3,3).count(0) == 0
 assert (1,2,2,3,3,3).count(0) == 0
+assert 3 in (1, 3, 4)
+assert 5 not in (1, 3, 4)
 
 
 assert repr(True) == 'True'
 assert repr(True) == 'True'
 assert repr(False) == 'False'
 assert repr(False) == 'False'