forked from runtimeverification/python-semantics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestformat2.py
More file actions
35 lines (34 loc) · 742 Bytes
/
Copy pathtestformat2.py
File metadata and controls
35 lines (34 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
try:
format("foo", "=")
assert False
except ValueError:
try:
format("foo", "+")
assert False
except ValueError:
try:
format("foo", "#")
assert False
except ValueError:
try:
format("foo", "0")
assert False
except ValueError:
try:
format("foo", ",")
assert False
except ValueError:
try:
format("foo", "d")
assert False
except ValueError:
try:
format("foo", "ss")
assert False
except ValueError:
try:
format("foo", ".")
assert False
except ValueError:
x = 5
assert x == 5