commonMain.it.unibo.tuprolog.solve.TestAtomConcat.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of test-solve Show documentation
Show all versions of test-solve Show documentation
Common testing facilities for 2P-Kt-based logic solvers
package it.unibo.tuprolog.solve
interface TestAtomConcat : SolverTest {
companion object {
fun prototype(solverFactory: SolverFactory): TestAtomConcatImpl = TestAtomConcatImpl(solverFactory)
}
/**
* Tests the queries
* ```prolog
* ?- atom_concat(test,concat,X).
* ```
* succeeds.
*
*/
fun testAtomConcatThirdIsVar()
/**
* Tests the queries
* ```prolog
* ?- atom_concat(test,concat,test).
* ```
* fails.
*
*/
fun testAtomConcatFails()
/**
* Tests the queries
* ```prolog
* ?- atom_concat(test,X,testTest).
* ```
* succeeds.
*
*/
fun testAtomConcatSecondIsVar()
/**
* Tests the queries
* ```prolog
* ?- atom_concat(X,query,testquery).
* ```
* succeeds.
*
*/
fun testAtomConcatFirstIsVar()
}