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:
parent
d5cff281c0
commit
9e15d91900
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user