You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lines 216 adds the literal characters that it already consumed into the output string. Unfortunately, the logic is failing because of these steps:
It sees the U in VALUEX22 and tries to interpret that as a Unicode escape (4 character)
It then sees the E, which is a valid hex digit, and goes back for another
It then sees the X, which is not a valid hex digit; it adds UEX to the output, then loops back to look for more escapes.
Unfortunately, because it consumed the X (and put it literally into the output), the algorithm now starts up at 22, which of course is not an escape sequence, so it puts those into the output as literal values.
The expected encoding is Parameter "RETURN VALUE" is always added
The actual encoding is Parameter "RETURN VALUEX22 is always added
The text was updated successfully, but these errors were encountered:
Discussed in #2583
Originally posted by tsawyer999 September 15, 2022
Hello,
I am trying to display the name for a test:
I tried those two ways and was not able to accomplish the expected result.
Result:
Result:
Can someone give me a hand to achieve the desired result?
Thank you very much!
This is a bug in the encoding routine in DisplayNameFormatter:
xunit/src/xunit.v3.core/Sdk/Frameworks/DisplayNameFormatter.cs
Lines 198 to 221 in 2b1f75b
Lines 216 adds the literal characters that it already consumed into the output string. Unfortunately, the logic is failing because of these steps:
U
inVALUEX22
and tries to interpret that as a Unicode escape (4 character)E
, which is a valid hex digit, and goes back for anotherX
, which is not a valid hex digit; it addsUEX
to the output, then loops back to look for more escapes.Unfortunately, because it consumed the
X
(and put it literally into the output), the algorithm now starts up at22
, which of course is not an escape sequence, so it puts those into the output as literal values.The expected encoding is
Parameter "RETURN VALUE" is always added
The actual encoding is
Parameter "RETURN VALUEX22 is always added
The text was updated successfully, but these errors were encountered: