Commit b14b96eb authored by Neeme Kahusk's avatar Neeme Kahusk

lihttest

parent 3d9ee14c
......@@ -13,6 +13,11 @@ from polaris2xml import parse_line
CHARACTERS = list(CHARSET + CHARSET.upper())
TEST_ELEMENTS = ['LITERAL']
def testchar(value: str, charset: list):
vallist = list(value)
res = [x for x in vallist if x in charset]
return vallist == res
def main():
parser = argparse.ArgumentParser(description='Tests presence of accepted characters in Polaris file.')
parser.add_argument('infile')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment