Skip to content
Snippets Groups Projects
Commit be90afcf authored by SimonGuilloud's avatar SimonGuilloud
Browse files

Updated tests and examples.

parent b401364e
No related branches found
No related tags found
No related merge requests found
...@@ -139,15 +139,15 @@ object Example { ...@@ -139,15 +139,15 @@ object Example {
p.formulas.foreach(printAnnotatedFormula) p.formulas.foreach(printAnnotatedFormula)
} }
val P = SchematicPredicateLabel("P", 1) val P = SchematicNPredicateLabel("P", 1)
val Q = PredicateFormula(SchematicPredicateLabel("Q", 0), Seq()) val Q = PredicateFormula(VariableFormulaLabel("Q"), Seq())
val R = PredicateFormula(SchematicPredicateLabel("R", 0), Seq()) val R = PredicateFormula(VariableFormulaLabel("R"), Seq())
val S = PredicateFormula(SchematicPredicateLabel("S", 0), Seq()) val S = PredicateFormula(VariableFormulaLabel("S"), Seq())
val T = PredicateFormula(SchematicPredicateLabel("T", 0), Seq()) val T = PredicateFormula(VariableFormulaLabel("T"), Seq())
val A = PredicateFormula(SchematicPredicateLabel("A", 0), Seq()) val A = PredicateFormula(VariableFormulaLabel("A"), Seq())
val B = PredicateFormula(SchematicPredicateLabel("B", 0), Seq()) val B = PredicateFormula(VariableFormulaLabel("B"), Seq())
val C = PredicateFormula(SchematicPredicateLabel("C", 0), Seq()) val C = PredicateFormula(VariableFormulaLabel("C"), Seq())
val x = VariableLabel("x") val x = VariableLabel("x")
val f = ConstantFunctionLabel("f", 1) val f = ConstantFunctionLabel("f", 1)
......
...@@ -101,7 +101,7 @@ class FolTests extends AnyFunSuite { ...@@ -101,7 +101,7 @@ class FolTests extends AnyFunSuite {
private val a = PredicateFormula(ConstantPredicateLabel("A", 0), Seq()) private val a = PredicateFormula(ConstantPredicateLabel("A", 0), Seq())
private val b = PredicateFormula(ConstantPredicateLabel("B", 0), Seq()) private val b = PredicateFormula(ConstantPredicateLabel("B", 0), Seq())
private val fp = ConstantPredicateLabel("F", 1) private val fp = ConstantPredicateLabel("F", 1)
private val sT = SchematicFunctionLabel("t", 0) private val sT = VariableLabel("t")
def test_some_random_formulas(n: Int, maxDepth: Int): Unit = { def test_some_random_formulas(n: Int, maxDepth: Int): Unit = {
(0 to n).foreach(_ => println(formulaGenerator(maxDepth))) (0 to n).foreach(_ => println(formulaGenerator(maxDepth)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment