zaf/tests/scripts/run_tests.sh
2021-05-21 22:10:15 +05:30

16 lines
394 B
Bash

#!/bin/bash
set -e
gcc -Wall test-hyphen.c -o test-hyphen -lhyphen
echo "Test to hyphenate given word => woordafbreking"
echo "woordafbreking" | ./test-hyphen /usr/share/hyphen/hyph_af_ZA.dic /dev/stdin
echo ""
echo ""
echo "Test to give all possible ways to hyphenate the given word => woordafbreking"
echo ""woordafbreking | ./test-hyphen -d /usr/share/hyphen/hyph_af_ZA.dic /dev/stdin