Google interview question

Writing test cases to assure a function worked as intended.