Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Jul 23, 2023
1 parent 61e8e0d commit 206c4c7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ import hu.bme.mit.theta.graphsolver.compilers.GraphPatternCompiler

class BasicEventSet(val name: String) : NodePattern() {

init {
patternName = name
}

override fun <T> accept(compiler: GraphPatternCompiler<*, T>): T = compiler.compile(this)
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ import hu.bme.mit.theta.graphsolver.compilers.GraphPatternCompiler

class BasicRelation(val name: String) : EdgePattern() {

init {
patternName = name
}

override fun <T> accept(compiler: GraphPatternCompiler<*, T>): T = compiler.compile(this)
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class GraphSolverTest<T> {
@Test
@Throws(IOException::class)
fun test() {
compiler!!.addEvents(graphEvents!!)
compiler!!.addFacts(graphEdges!!)
val compiledConstraint = constraint!!.accept(compiler!!)
solver!!.add(compiledConstraint)
Expand Down
2 changes: 1 addition & 1 deletion subprojects/xcfa/cat/src/main/antlr/Cat.g4
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: (QUOT? NAME+ QUOT?)
;

scopeBody
: (procCall | functionDef | procDef | definition | includeFile)+
: (procCall | functionDef | procDef | definition | includeFile)*
;

procCall
Expand Down

0 comments on commit 206c4c7

Please sign in to comment.