【发布时间】:2018-12-11 03:04:20
【问题描述】:
我正在使用 prolog (swipl) 实现一个自然语言生成器。
我有一个 .txt 测试文件,其中包含一些我应该能够以这种格式生成的短语:
[goal,identify,type_object,animal,object,cat,event,ran away,when,[last,mont],where,[]]
[which,cats,ran away,last,month,?]
[goal,identify,type_object,animal,object,dog,event,ran,when,[last,mont],where,[]]
[which,dogs,ran away,last,year,?]
等等……
我如何使用 plunit(或其他东西?)来检查我的测试文件的所有元素是否都在我的输出文件中返回真/假?
【问题讨论】:
标签: unit-testing testing prolog swi-prolog plunit