Lines Matching refs:test
3 def test(fmt, *args): function
6 test("}}{{")
7 test("{}-{}", 1, [4, 5])
8 test("{0}-{1}", 1, [4, 5])
9 test("{1}-{0}", 1, [4, 5])
10 test("{:x}", 1)
11 test("{!r}", 2)
12 test("{:x}", 0x10)
13 test("{!r}", "foo")
14 test("{!s}", "foo")
15 test("{0!r:>10s} {0!s:>10s}", "foo")
17 test("{:4b}", 10)
18 test("{:4c}", 48)
19 test("{:4d}", 123)
20 test("{:4n}", 123)
21 test("{:4o}", 123)
22 test("{:4x}", 123)
23 test("{:4X}", 123)
25 test("{:4,d}", 12345678)
27 test("{:#4b}", 10)
28 test("{:#4o}", 123)
29 test("{:#4x}", 123)
30 test("{:#4X}", 123)
32 test("{:#4d}", 0)
33 test("{:#4b}", 0)
34 test("{:#4o}", 0)
35 test("{:#4x}", 0)
36 test("{:#4X}", 0)
38 test("{:<6s}", "ab")
39 test("{:>6s}", "ab")
40 test("{:^6s}", "ab")
41 test("{:.1s}", "ab")
43 test("{: <6d}", 123)
44 test("{: <6d}", -123)
45 test("{:0<6d}", 123)
46 test("{:0<6d}", -123)
47 test("{:@<6d}", 123)
48 test("{:@<6d}", -123)
50 test("{:@< 6d}", 123)
51 test("{:@< 6d}", -123)
52 test("{:@<+6d}", 123)
53 test("{:@<+6d}", -123)
54 test("{:@<-6d}", 123)
55 test("{:@<-6d}", -123)
57 test("{:@>6d}", -123)
58 test("{:@<6d}", -123)
59 test("{:@=6d}", -123)
60 test("{:06d}", -123)
62 test("{:>20}", "foo")
63 test("{:^20}", "foo")
64 test("{:<20}", "foo")
67 test('{:d}', False)
68 test('{:20}', False)
69 test('{:d}', True)
70 test('{:20}', True)