Skip to content

Commit

Permalink
Test correct restart
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbrooks committed Dec 1, 2021
1 parent 6b9f1ff commit 14ce673
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/test/kotlin/io/github/facilityapi/intellij/FsdLexerTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package io.github.facilityapi.intellij

import com.intellij.lexer.Lexer
import com.intellij.testFramework.LexerTestCase
import io.github.facilityapi.intellij.lexer.FsdLexerAdapter

class FsdLexerTest : LexerTestCase() {
override fun createLexer(): Lexer = FsdLexerAdapter()
override fun getDirPath(): String = "src/test/testData"

fun `test correct restart`() {
checkCorrectRestartOnEveryToken(
"""
[CSharp(namespace: test)]
service WidgetAPI
{
}
""".trimIndent()
)
}
}

0 comments on commit 14ce673

Please sign in to comment.