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
Improve basic conformance and add more unit tests
Continue my review of code based on spec and fix various steps that
drop the basic conformance failures from 12827 to 250.
* X10: Fix incorrect index for `succ_level` resolution (off by
`end_of_seq` because of sub-sequencing) and add unit tests from the spec
text, from both BD13 and X10 sections.
* N1/N2: Fix resetting rule for NI levels by definint `e`, as noted in
the spec.
* L1: Fix not resetting leading whitespace/formatting chars in a line.
* Use non-ASCII sample chars for `gen_char_from_bidi_class()`, which
increases the failure rate from 250 to 314.
* This allows easier testing of the logic, specially having specific cases
from the conformance test as unit test, as corner bugs unfold.
* There's almost no extra cost in expanding the shortcut condition to
check all the isolating run sequences to be LTR, if there's more than
one. This can prevent a bunch of string manipulation when all isolating
run sequences are LTR.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/unicode-bidi/36)
<!-- Reviewable:end -->
0 commit comments