print("Should pass:")
x = 7
y = x**2
print("x = {}".format(x))
print("y = {}".format(y))
assert y >= 0

'''''
print("Should fail!")
print("Assertion error:")
x = 2*1j
y = x**2
print("x = {}".format(x))
print("y = {}".format(y))
assert y >= 0
'''''

print("Done!")


# Simple unit test
def square_me(x):
    return x**2

# Should all pass
assert square_me(0) == 0
assert square_me(2) == 4
assert square_me(3) == 9

# Should fail, bug in function
# Simple unit test
def square_me(x):
    return -x**2

print("Assertion should fail due to bug in func square_me")
assert square_me(0) == 0
assert square_me(2) == 4
assert square_me(3) == 9
ae6da1dbb5d0a6ef510ea2eb515975345062d850
<mask token>


def square_me(x):
    return x ** 2


<mask token>

<mask token>


def square_me(x):
    return x ** 2


<mask token>


def square_me(x):
    return -x ** 2


<mask token>

print('Should pass:')
<mask token>
print('x = {}'.format(x))
print('y = {}'.format(y))
assert y >= 0
<mask token>
print('Done!')


def square_me(x):
    return x ** 2


assert square_me(0) == 0
assert square_me(2) == 4
assert square_me(3) == 9


def square_me(x):
    return -x ** 2


print('Assertion should fail due to bug in func square_me')
assert square_me(0) == 0
assert square_me(2) == 4
assert square_me(3) == 9

print('Should pass:')
x = 7
y = x ** 2
print('x = {}'.format(x))
print('y = {}'.format(y))
assert y >= 0
<mask token>
print('Done!')


def square_me(x):
    return x ** 2


assert square_me(0) == 0
assert square_me(2) == 4
assert square_me(3) == 9


def square_me(x):
    return -x ** 2


print('Assertion should fail due to bug in func square_me')
assert square_me(0) == 0
assert square_me(2) == 4
assert square_me(3) == 9

print("Should pass:")
x = 7
y = x**2
print("x = {}".format(x))
print("y = {}".format(y))
assert y >= 0

'''''
print("Should fail!")
print("Assertion error:")
x = 2*1j
y = x**2
print("x = {}".format(x))
print("y = {}".format(y))
assert y >= 0
'''''

print("Done!")


# Simple unit test
def square_me(x):
    return x**2

# Should all pass
assert square_me(0) == 0
assert square_me(2) == 4
assert square_me(3) == 9

# Should fail, bug in function
# Simple unit test
def square_me(x):
    return -x**2

print("Assertion should fail due to bug in func square_me")
assert square_me(0) == 0
assert square_me(2) == 4
assert square_me(3) == 9