Ruby: Add another regex consistency test

This commit is contained in:
Tom Hvitved
2022-03-08 15:50:36 +01:00
parent a70ed71c01
commit 073302f196

View File

@@ -6,3 +6,9 @@ query predicate nonUniqueChild(RegExpParent parent, int i, RegExpTerm child) {
}
query predicate cyclic(RegExpParent parent) { parent = parent.getAChild+() }
query predicate nonConsecutive(RegExpParent parent, int i) {
exists(parent.getChild(i)) and
i > 0 and
not exists(parent.getChild(i - 1))
}