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: ``sudo dnf install fribidi``.
# 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: ``echo "English فارسی English" | fribidi``.
# 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

  1. Ensure fribidi is installed: sudo dnf install fribidi.
  2. 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

  1. Open a terminal.
  2. Use the command fribidi to process a string of bidirectional text. For example: $ echo "English فارسی English" | fribidi.
  3. Observe the output and see if the text direction of the Arabic portion (in this case "فارسی") has been reversed.
  4. Repeat the test with other bidirectional strings and languages to ensure thorough testing.

Expected Results

  1. The fribidi command should output text that respects the bidirectionality of the input string.
  2. English text should remain in its original order, but right-to-left languages like Arabic or Hebrew should appear reversed in the output.
  3. No errors should be thrown while processing the text.