import khoury.EnabledTest import khoury.runEnabledTests import khoury.testSame // TODO: Design the function fNToString that converts // a FullName data type (that you must) design // into a corresponding string that contains // the person's first name followed by last. // represents the parts of a person's name, first and last data class FullName(val firstName: String, val lastName: String) val fullNameHP = FullName("Harry", "Potter") val fullNameHG = FullName("Hermione", "Granger") // converts a full name value to the corresponding // string with first and last name fun fNToString(fullName: FullName): String { return "${ fullName.firstName } ${ fullName.lastName }" } @EnabledTest fun testFNToString() { testSame( fNToString(fullNameHP), "Harry Potter", "harry", ) testSame( fNToString(fullNameHG), "Hermione Granger", "hermione", ) } fun main() { } runEnabledTests(this) main()