我写了遗产申请产出的名词,因为档案中没有像我这样多的这些档案样本。
现在我撰写了单元测试文件,然后执行标语(因为没有其他节奏)。
- use the real files produced by the application, reading from them and comparing the output with the output that I would store in json format in another file.
- or create a sample string with the tokens and possibilities I want to test and a dict (this is python) with the expected output.
我倾向于使用第二种选择,因为我只需要测试,而没有列入实际档案的所有“真实世界”数据,但我恐怕我会忘记测试一种可能性。
What do you think?