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-js Show documentation
Show all versions of test-solve-js Show documentation
"Multi-platform Prolog environment, in Kotlin"
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()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy