All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.it.unibo.tuprolog.solve.TestInteger.kt Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy