packageorg.functionalkoans.forscalaimportorg.scalatest.matchers.ShouldMatchersimportsupport.KoanSuiteclassAboutFormattingextendsKoanSuitewithShouldMatchers{koan("Character Literals can be an a single character"){vala='a'valb='B'//format(a) is a string format, meaning the "%c".format(x)//will return the string representation of the char."%c".format(a)shouldbe(__)"%c".format(b)shouldbe(__)}koan("Character Literals can be an escape sequence, including octal or hexidecimal"){valc='\u0061'//unicode for avald='\141'//octal for avale='\"'valf='\\'"%c".format(c)shouldbe(__)"%c".format(d)shouldbe(__)"%c".format(e)shouldbe(__)"%c".format(f)shouldbe(__)}}