mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 17:08:54 -06:00
Recognise AllXxxAbs as abstract in unittest
This commit is contained in:
@@ -92,7 +92,7 @@ def collect_testcases(testlines):
|
|||||||
elif ':' in line:
|
elif ':' in line:
|
||||||
lang, sentence = stripstrings(line.split(':', 1))
|
lang, sentence = stripstrings(line.split(':', 1))
|
||||||
langfile = importfile(linenr, lang)
|
langfile = importfile(linenr, lang)
|
||||||
is_tree = '/abstract/' in langfile
|
is_tree = ('/abstract/' in langfile) or 'Abs' in langfile
|
||||||
test.append((is_tree, linenr, lang, langfile, sentence))
|
test.append((is_tree, linenr, lang, langfile, sentence))
|
||||||
else:
|
else:
|
||||||
error(linenr, "Ill-formatted line in test file:", line)
|
error(linenr, "Ill-formatted line in test file:", line)
|
||||||
|
|||||||
Reference in New Issue
Block a user