diff options
| author | Sam Varshavchik | 2021-02-13 23:30:50 -0500 |
|---|---|---|
| committer | Sam Varshavchik | 2021-02-13 23:30:50 -0500 |
| commit | 688f31b2d1a5e0735661a829d7f743f9a0b68050 (patch) | |
| tree | c2a23e4d760d8d1b72f07e0c8b108f2d46315ce2 /unicode/biditest2.C | |
| parent | 2db8a28d72bee3746ce6d06bf5c0896e46269492 (diff) | |
| download | courier-libs-688f31b2d1a5e0735661a829d7f743f9a0b68050.tar.bz2 | |
2021-02-13 Sam Varshavchik <mrsam@courier-mta.com>
* courier-unicode-version.m4: split version checking macro into its
own m4 file.
* unicode::bidi_calc - an empty string with an explicit embedding
level should return the requested embedding level.
Diffstat (limited to 'unicode/biditest2.C')
| -rw-r--r-- | unicode/biditest2.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/unicode/biditest2.C b/unicode/biditest2.C index 8e9d7da..d81a493 100644 --- a/unicode/biditest2.C +++ b/unicode/biditest2.C @@ -548,6 +548,16 @@ void null_character_test() }, UNICODE_BIDI_CLEANUP_EXTRA, 0, 3); + + s=U""; + res=unicode::bidi_calc(s, UNICODE_BIDI_RL); + + if (std::get<1>(res) != UNICODE_BIDI_RL) + { + std::cerr << "Paragraph embedding level not honored" + << std::endl; + exit(1); + } } void direction_test() |
