Literal Strings

Character literals are quoted with single quotes:

val a = 'a'
val b = 'B'

a.toString should be(res0)
b.toString should be(res1)

Character literals can use hexadecimal Unicode:

val c = 'a' //unicode for a

c.toString should be(res0)

Character literals can use escape sequences:

val e = '\"'
val f = '\\'

e.toString should be(res0)
f.toString should be(res1)

One-line String literals are surrounded by quotation marks:

val a = "To be or not to be"
a should be(res0)