-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3538 from jojo2357/left-right
Complete left with right always.
- Loading branch information
Showing
3 changed files
with
62 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
test/nl/hannahsten/texifyidea/completion/RightInsertHandlerTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package nl.hannahsten.texifyidea.completion | ||
|
||
import com.intellij.codeInsight.completion.CompletionType | ||
import com.intellij.codeInsight.lookup.Lookup | ||
import com.intellij.testFramework.fixtures.BasePlatformTestCase | ||
import nl.hannahsten.texifyidea.file.LatexFileType | ||
|
||
class RightInsertHandlerTest : BasePlatformTestCase() { | ||
fun testLeftRightBraces() { | ||
myFixture.configureByText(LatexFileType, """$\lef<caret> $""") | ||
myFixture.complete(CompletionType.BASIC) | ||
myFixture.finishLookup(Lookup.NORMAL_SELECT_CHAR) | ||
myFixture.checkResult("""$\left( <caret> \right) $""") | ||
} | ||
} |