1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-10 06:40:37 +02:00

adding tests for empty editors

This commit is contained in:
Emanuel Gestosa 2023-08-11 15:35:44 +01:00 committed by lippfi
parent d5cff281c0
commit 9e15d91900

View File

@ -723,6 +723,23 @@ class NFATest {
)
}
@Test
fun `test for empty file`() {
assertCorrectRange(
"",
"\\v%^%$",
IntRange.EMPTY
)
}
@Test
fun `test for empty file should fail`() {
assertFailure(
"IdeaVim",
"\\v%^%$"
)
}
private fun assertCorrectRange(
text: CharSequence,
pattern: String,