From Fedora Project Wiki
Description
This test case ensures that the FriBidi library correctly handles bidirectional text (like Arabic or Hebrew).
Setup
- Ensure
fribidi
is installed:sudo dnf install fribidi
. - You may want to have sample bidirectional text available for testing. An online resource or a previously prepared text file would suffice.
How to test
- Open a terminal.
- Use the command
fribidi
to process a string of bidirectional text. For example: $ echo "English فارسی English" | fribidi.
- Observe the output and see if the text direction of the Arabic portion (in this case "فارسی") has been reversed.
- Repeat the test with other bidirectional strings and languages to ensure thorough testing.
Expected Results
- The
fribidi
command should output text that respects the bidirectionality of the input string. - English text should remain in its original order, but right-to-left languages like Arabic or Hebrew should appear reversed in the output.
- No errors should be thrown while processing the text.