Swap expected/actual variables in t function in test_utf8_simd_decode
For more useful debugging. The expected value is what the scalar decoder returns. The actual value is what the "which" SIMD decoder returns.
This commit is contained in:
parent
0a6ed15858
commit
77a3fc8dd2
1 changed files with 2 additions and 2 deletions
|
|
@ -214,9 +214,9 @@ def parse_parts(which):
|
|||
return esc_found, ''.join(parts), total_consumed
|
||||
|
||||
reset_state()
|
||||
actual = parse_parts(1)
|
||||
expected = parse_parts(1)
|
||||
reset_state()
|
||||
expected = parse_parts(which)
|
||||
actual = parse_parts(which)
|
||||
self.ae(expected, actual, msg=f'Failed for {a} with {which=}\n{expected!r} !=\n{actual!r}')
|
||||
return actual
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue