Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@RememberMe Nope. Strings.Just comparing strings after a Regex replace. I already surmise that there is a non-breaking space in the result. But still.
-
Should have your test output byte values instead of strings when the comparison fails. 🤷♂️
-
It's learning... It expected fire as in combustion and flames but instead was given fire as in to terminate an employee
So lexically they don't match. -
Maybe one string has some unprintable character?
I sometimes mess up in the terminal and and up having some weird character in a seemingly ok command. -
@eo2875 There's a zero-width space in the string. Normally you'd see this come up as \u8203 when logging the string but apparently for the regex you should be looking for the hex which is \u200B.
Thank goodness there's always someone who's got the same issue on SO lol https://stackoverflow.com/questions... -
@kwilliams thanks! I used this kind of assertion in golang but I have a c# project coming up.
ARE YOU FUCKING KIDDING ME JASMINE
FUCK YOU FUCK FUCK FUCKETY FUCK
FML
rant
fuck karma
fuck jasmine
fuck unit tests