<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># nametest.py

""" Unit tests for name
    (First attempt) """


import name           # The module we want to test
import cornellasserts  # Module that supports testing

# First test case
result = name.last_name_first('Katherine Johnson')
cornellasserts.assert_equals('Johnson, Katherine', result)

# Second test case
result = name.last_name_first('Katherine      Johnson')
cornellasserts.assert_equals('Johnson, Katherine', result)

print('All tests of the function last_name_first passed')
</pre></body></html>