From Fedora Project Wiki
(Created page with "{{QA/Test_Case |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. |actions= # Open a terminal. # Use the command ``fribidi`` to process a string of bidirectional text. For example: ``echo "En...") |
No edit summary |
||
Line 2: | Line 2: | ||
|description=This test case ensures that the FriBidi library correctly handles bidirectional text (like Arabic or Hebrew). | |description=This test case ensures that the FriBidi library correctly handles bidirectional text (like Arabic or Hebrew). | ||
|setup= | |setup= | ||
# Ensure `fribidi` is installed: | # 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. | # You may want to have sample bidirectional text available for testing. An online resource or a previously prepared text file would suffice. | ||
|actions= | |actions= | ||
# Open a terminal. | # Open a terminal. | ||
# Use the command ``fribidi`` to process a string of bidirectional text. For example: | # Use the command ``fribidi`` to process a string of bidirectional text. For example: <nowiki> $ echo "English فارسی English" | fribidi</nowiki>. | ||
# Observe the output and see if the text direction of the Arabic portion (in this case "فارسی") has been reversed. | # 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. | # Repeat the test with other bidirectional strings and languages to ensure thorough testing. |
Latest revision as of 08:25, 22 August 2023
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.