SearchEquivalenceTestBase

Simple base class for checking search equivalence. Extend it, and write tests that create .randomTerms (all terms are single characters a-z), and use .assertSameSet and assertSubsetOf.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun assertSameSet(q1: Query, q2: Query)

Asserts that the documents returned by q1 are the same as of those returned by q2

Link copied to clipboard
fun assertSubsetOf(q1: Query, q2: Query)

Asserts that the documents returned by q1 are a subset of those returned by q2

Link copied to clipboard
Link copied to clipboard