File: test_dir_hfst_sfst_rules.py

package info (click to toggle)
hfst 3.16.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,532 kB
  • sloc: cpp: 101,875; sh: 6,717; python: 5,225; yacc: 4,985; lex: 2,900; makefile: 2,017; xml: 6
file content (17 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- coding: utf-8 -*-
import sys
if len(sys.argv) > 1:
    sys.path.insert(0, sys.argv[1])
import hfst.sfst_rules

diritems = \
['coercion', 'deep_coercion', 'deep_restriction', 'deep_restriction_and_coercion', \
 'left_replace_down', 'left_replace_down_karttunen', 'left_replace_left', 'left_replace_right', \
 'left_replace_up', 'replace_down', 'replace_down_karttunen', 'replace_left', 'replace_right', \
 'replace_up', 'restriction', 'restriction_and_coercion', 'surface_coercion', 'surface_restriction', \
 'surface_restriction_and_coercion', 'two_level_if', 'two_level_if_and_only_if', 'two_level_only_if']

dirhfstsfstrules = dir(hfst.sfst_rules)

for item in diritems:
    assert item in dirhfstsfstrules