@@ -12,15 +12,36 @@ def canonizeStringList (stringList):
1212 return [canonizeString (aString ) for aString in stringList ]
1313
1414def run (autoTester ):
15- autoTester .check ('min' , min (- 1.1 , - 1 , - 3 ))
16- autoTester .check ('max' , max (- 1.1 , - 1 , - 3 ))
17- autoTester .check ('max' , max ([- 1.1 , - 1 , - 3 ]))
18- autoTester .check ('max' , max ((- 1.1 , - 1 , - 3 )))
19- autoTester .check ('max' , max ('abc' , 'ABC' , 'xyz' , 'XYZ' ))
20- autoTester .check ('max' , max ('abc' , 'ABC' , 'xyz' , 'XYZ' , key = lambda v : v [1 ]))
21- autoTester .check ('max' , max (['abc' , 'ABC' , 'xyz' , 'XYZ' ]))
22- autoTester .check ('max' , autoTester .expectException (lambda : max ([])))
23- autoTester .check ('max' , max ([], default = 'zzz' ))
15+ autoTester .check ('min' ,
16+ min (- 1.1 , - 1 , - 3 ),
17+ min ([- 1.1 , - 1 , - 3 ]),
18+ min ((- 1.1 , - 1 , - 3 )),
19+ min ('abc' , 'ABC' , 'xyz' , 'XYZ' ),
20+ min ('abc' , 'ABC' , 'xyz' , 'XYZ' , key = lambda v : v [1 ]),
21+ min (['abc' , 'ABC' , 'xyz' , 'XYZ' ]),
22+ min ([5 ,6 ,7 ,8 ,9 ],[1 ,2 ,3 ,4 ],key = len ),
23+ min ([[5 ,6 ,7 ,8 ,9 ],[1 ,2 ,3 ,4 ]],default = [1 ,1 ,1 ],key = len ),
24+ min ([], default = 'zzz' ),
25+ )
26+
27+ autoTester .check ('max' ,
28+ max (- 1.1 , - 1 , - 3 ),
29+ max ([- 1.1 , - 1 , - 3 ]),
30+ max ((- 1.1 , - 1 , - 3 )),
31+ max ('abc' , 'ABC' , 'xyz' , 'XYZ' ),
32+ max ('abc' , 'ABC' , 'xyz' , 'XYZ' , key = lambda v : v [1 ]),
33+ max (['abc' , 'ABC' , 'xyz' , 'XYZ' ]),
34+ max ([5 ,6 ,7 ,8 ,9 ],[1 ,2 ,3 ,4 ],key = len ),
35+ max ([[5 ,6 ,7 ,8 ,9 ],[1 ,2 ,3 ,4 ]],default = [1 ,1 ,1 ],key = len ),
36+ max ([], default = 'zzz' ),
37+ )
38+ # autoTester.check ('max', autoTester.expectException(lambda: max () ))
39+ # autoTester.check ('max', autoTester.expectException(lambda: max (1,2,3,4, default=5) ))
40+ # autoTester.check ('max', autoTester.expectException(lambda: max (default=5)))
41+ # autoTester.check ('max', autoTester.expectException(lambda: max ([])))
42+ # autoTester.check ('max', autoTester.expectException(lambda: max([5,6,7,8,9],[1,2,3,4],default=[1,1,1],key=len) ))
43+ # autoTester.check ('max', autoTester.expectException(lambda: max ([4, 5, 'xyz', 'XYZ']) ))
44+
2445 autoTester .check ('abs' , abs (- 1 ), abs (1 ), abs (0 ), abs (- 0.1 ), abs (0.1 ))
2546
2647 autoTester .check ('ord' , ord ('a' ), ord ('e´' [0 ])) # This is the 2 codepoint version
0 commit comments