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
The fuzzy-tester has various "normalizers" for adjusting both the expected and actual value of test results to ignore minor differences, like capitalization.
Right now, combining these normalizers in certain ways can lead to false reports of test failures. This happens, at least in part, because normalizers such as abbreviateDirectionals operate only on capitalized variants of the directionals.
For example, here's the output of an autocomplete run with the following normalizer settings:
There's a distinctive pattern of "alternating" passes and fails. This is only an artifact of running the tests, and not actually a real thing.
Until we fix this, as a workaround, be sure to specify toUpperCasebefore any directional/abbreviation normalizers, and then optionally use toLowerCaseafter those normalizers if you want the output to be compared in lower case.
Here's the same test run with the following normalizers:
The
fuzzy-tester
has various "normalizers" for adjusting both the expected and actual value of test results to ignore minor differences, like capitalization.Right now, combining these normalizers in certain ways can lead to false reports of test failures. This happens, at least in part, because normalizers such as
abbreviateDirectionals
operate only on capitalized variants of the directionals.For example, here's the output of an autocomplete run with the following normalizer settings:
There's a distinctive pattern of "alternating" passes and fails. This is only an artifact of running the tests, and not actually a real thing.
Until we fix this, as a workaround, be sure to specify
toUpperCase
before any directional/abbreviation normalizers, and then optionally usetoLowerCase
after those normalizers if you want the output to be compared in lower case.Here's the same test run with the following normalizers:
The text was updated successfully, but these errors were encountered: