SortTest

fun interface SortTest<T>

Heap Sort Tester

Defines a function that is used to verify the sorting of elements in a Heap instance.

This function takes two values in the order they currently appear and tests whether that order is correct, returning true if the order is correct, or false if the order is incorrect.

Author

Elizabeth Paige Harper - https://github.com/foxcapades

Since

0.1.0

Parameters

T

Type of values that will be tested.

Functions

Link copied to clipboard
abstract fun test(first: T, second: T): Boolean

Tests whether the given values are in the correct order.