Anyone know why: ``` val t = '\u223C' // TILDE v...
# announcements
a
Anyone know why:
Copy code
val t = '\u223C'  // TILDE
val a = "A" + t + "B" + t + "C"
val b = "A~B~C"
val c = "A${t}B${t}C"
println (a == b)    // false
println (b == c)    // true
?
p
I am getting false for both
1
Copy code
A∼B∼C
A~B~C
A∼B∼C
they look same here, but different with a different font
m
it's false;false for me. Changing
t
to
Copy code
val t = '\u007E'
gives true;true
p
a
hmm, now I get the same as you ggguys
Sorry, synergy keyboard 😞
👌 1
The source of this question was a unit test using junit 5. In my code I concat the unicode to the String. When I use String interpolation in my assertThat(s).isEqualTo then it matches. If I now go and replace all the interpolations with a manually typed ~ then the isEqualTo fails. Could it be their implementation is flaky?
or maybe it is my ide character set
Yes I get 2 different values for '~'.toInt() and '\u223C'.toInt()