diff --git a/src/commonTest/kotlin/dev/snipme/highlights/internal/locator/KeywordLocatorTest.kt b/src/commonTest/kotlin/dev/snipme/highlights/internal/locator/KeywordLocatorTest.kt index c2d1fa1..afb0042 100644 --- a/src/commonTest/kotlin/dev/snipme/highlights/internal/locator/KeywordLocatorTest.kt +++ b/src/commonTest/kotlin/dev/snipme/highlights/internal/locator/KeywordLocatorTest.kt @@ -97,6 +97,18 @@ internal class KeywordLocatorTest { assertEquals(0, result.size) } + @Test + fun `Not returns location of keyword inside phrase from start`() { + val testCode = """ + val intent = 0 + """.trimIndent() + val keywords = listOf("int") + + val result = KeywordLocator.locate(testCode, keywords) + + assertEquals(0, result.size) + } + @Test fun `Not returns keywords from single comment`() { val testCode = """