Skip to content

Commit

Permalink
add test for analyze api
Browse files Browse the repository at this point in the history
  • Loading branch information
mixify committed Apr 19, 2024
1 parent 0fd0b4a commit a44e522
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.jillesvangurp.ktsearch

import io.kotest.matchers.shouldBe
import kotlin.test.Test

class AnalyzeTest : SearchTestBase() {

@Test
fun shouldAnalyzeQuery() = coRun {
val resp = client.analyze {
text = listOf("foo bar")
analyzer = "standard"
}

resp.tokens.size shouldBe 2
}
}

0 comments on commit a44e522

Please sign in to comment.