TestArith

interface TestArith : SolverTest

Conformance tests for the ISO arithmetic comparison operators =\=/2, =:=/2, >/2, >=/2, </2 and =</2 (each comparing the evaluated value of its two arithmetic-expression arguments, unlike the term-order operators in TestTerm), shared by every Solver implementation via the TestArith.prototype(solverFactory) factory (see TestClassicArith in :solve-classic for a concrete usage).

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A long test max duration, four times mediumDuration; used for queries involving deeper search or recursion.

Link copied to clipboard

A medium test max duration, twice shortDuration; used for queries involving a handful of resolution steps.

Link copied to clipboard

A short test max duration, used for queries expected to resolve almost immediately.

Functions

Link copied to clipboard
abstract fun testArithDiff()

Tests the queries

Link copied to clipboard
abstract fun testArithEq()

Tests the queries

Link copied to clipboard
abstract fun testArithGreaterThan()

Tests the queries

Link copied to clipboard
abstract fun testArithGreaterThanEq()

Tests the queries

Link copied to clipboard
abstract fun testArithLessThan()

Tests the queries

Link copied to clipboard
abstract fun testArithLessThanEq()

Tests the queries