// TODO: Design the function getFullName that uses the input // function to get a first and last name from the // keyboard, print the full name to the screen, and // then return the new FullName they create. // // 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", ) }