commonMain.it.unibo.tuprolog.solve.TestInteger.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
/**
* Tests of Integer
*/
interface TestInteger : SolverTest {
companion object {
fun prototype(solverFactory: SolverFactory): TestInteger = TestIntegerImpl(solverFactory)
}
/**
* Tests the query
* ```prolog
* ?- integer(3).
* ```
* succeeds on a solver initialized with default built-ins and with and empty theory.
*/
fun testIntPositiveNum()
/**
* Tests the query
* ```prolog
* ?- integer(-3).
* ```
* succeeds on a solver initialized with default built-ins and with and empty theory.
*/
fun testIntNegativeNum()
/**
* Tests the query
* ```prolog
* ?- integer(3.3).
* ```
* fails on a solver initialized with default built-ins and with and empty theory.
*/
fun testIntDecNum()
/**
* Tests the query
* ```prolog
* ?- integer(X).
* ```
* fails on a solver initialized with default built-ins and with and empty theory.
*/
fun testIntX()
/**
* Tests the query
* ```prolog
* ?- integer(atom).
* ```
* fails on a solver initialized with default built-ins and with and empty theory.
*/
fun testIntAtom()
}