unison/unison-src/tests/text-escaping.u
2020-02-07 18:59:37 -08:00

11 lines
141 B
Plaintext

id x = x
x = id ("\n")
find : Text -> Text
find s = match (Text.take 1 s) with
"\n" -> "found"
_ -> "not found"
> (x, find "\nbar")