Esempio n. 1
0
def check(args):
    """
    clpa check <STRING>
    """
    if len(args.args) != 1:
        raise ParserError('only one argument allowed')
    check = check_string(args.args[0], load_whitelist())
    print('\t'.join(args.args[0].split(' ')))
    print('\t'.join(check))
Esempio n. 2
0
def check(args):
    """
    clpa check <STRING>
    """
    if len(args.args) != 1:
        raise ParserError('only one argument allowed')
    check = check_string(args.args[0], load_whitelist())
    print('\t'.join(args.args[0].split(' ')))
    print('\t'.join(check))
Esempio n. 3
0
    def test_check_string(self):
        from pyclpa.util import check_string, load_whitelist

        check = check_string('m a tt i s', load_whitelist())
        assert check[2] == '?'