autopep8 cleanup of Examples/test-suite/python
automated cleanup of python pep8 whitespace compliance
This commit is contained in:
parent
9086eb351c
commit
b77f3afafb
202 changed files with 3477 additions and 3382 deletions
|
|
@ -1,7 +1,9 @@
|
|||
import cpp11_function_objects
|
||||
import sys
|
||||
|
||||
|
||||
class Test1(cpp11_function_objects.Test):
|
||||
|
||||
def __init__(self):
|
||||
cpp11_function_objects.Test.__init__(self)
|
||||
|
||||
|
|
@ -10,14 +12,17 @@ class Test1(cpp11_function_objects.Test):
|
|||
|
||||
t = cpp11_function_objects.Test()
|
||||
if t.value != 0:
|
||||
raise RuntimeError("Runtime cpp11_function_objects failed. t.value should be 0, but is " + str(t.value))
|
||||
raise RuntimeError(
|
||||
"Runtime cpp11_function_objects failed. t.value should be 0, but is " + str(t.value))
|
||||
|
||||
t(1,2) # adds numbers and sets value
|
||||
t(1, 2) # adds numbers and sets value
|
||||
|
||||
if t.value != 3:
|
||||
raise RuntimeError("Runtime cpp11_function_objects failed. t.value not changed - should be 3, but is " + str(t.value))
|
||||
|
||||
raise RuntimeError(
|
||||
"Runtime cpp11_function_objects failed. t.value not changed - should be 3, but is " + str(t.value))
|
||||
|
||||
t2 = Test1()
|
||||
a = cpp11_function_objects.testit1(t2, 4,3)
|
||||
a = cpp11_function_objects.testit1(t2, 4, 3)
|
||||
if a != 12:
|
||||
raise RuntimeError("Runtime cpp11_function_objects failed. t.value not changed - should be 12, but is " + str(a))
|
||||
raise RuntimeError(
|
||||
"Runtime cpp11_function_objects failed. t.value not changed - should be 12, but is " + str(a))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue