I am testing two strings to see if they are equal.
One string is just a simple string: “\17”
The other is parsed to: “\17”
You might think so, but nope:
“\17”
=> “\u000F”
“\1#{7}”
=> “\u00017”
“\001”
=> “\u0001”
“\01”
=> “\u0001”
“\1”
=> “\u0001”
=> “\0017”
“\u00017”
The \ causes things to be escaped, with the subsequent 3 digits being an
octal number. “\001” == “\01” == “\1”, and “\1#{7}” == “\1” + “#{7}” ==
“\001” + “#{7}”