blueloveTH %!s(int64=2) %!d(string=hai) anos
pai
achega
d7e277e822
Modificáronse 2 ficheiros con 19 adicións e 16 borrados
  1. 19 1
      tests/99_bugs.py
  2. 0 15
      tests/99_bugs2.py

+ 19 - 1
tests/99_bugs.py

@@ -29,4 +29,22 @@ else:
 if inq is   not 1:
     assert True
 if inq  is  not  0:
-    assert False
+    assert False
+
+assert pow(2,5000,2**59-1) == 17592186044416
+
+def g(x):
+    return x
+def f(x):
+    return x
+
+assert (g(1), 2) == (1, 2)
+assert (
+    g(1),
+    2
+) == (1, 2)
+
+assert f((
+    g(1),
+    2
+)) == (1, 2)

+ 0 - 15
tests/99_bugs2.py

@@ -1,15 +0,0 @@
-def g(x):
-    return x
-def f(x):
-    return x
-
-assert (g(1), 2) == (1, 2)
-assert (
-    g(1),
-    2
-) == (1, 2)
-
-assert f((
-    g(1),
-    2
-)) == (1, 2)