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

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

There is a newer version: 1.0.4
Show newest version
package it.unibo.tuprolog.solve

interface TestCut : SolverTest {
    companion object {
        fun prototype(solverFactory: SolverFactory): TestCut = TestCutImpl(solverFactory)
    }

    /**
     * Tests the queries
     * ```prolog
     * ?- !.
     * ```
     * succeeds on a solver initialized with default built-ins and with and empty theory.
     */
    fun testCut()

    /**
     * Tests the queries
     * ```prolog
     * ?- (!,fail;true).
     * ```
     * succeeds on a solver initialized with default built-ins and with and empty theory.
     */
    fun testCutFailTrue()

    /**
     * Tests the queries
     * ```prolog
     * ?- (call(!),fail;true).
     * ```
     * succeeds on a solver initialized with default built-ins and with and empty theory.
     */
    fun testCallCutFailTrue()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy