Skip to content

Commit

Permalink
Make tests internal
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderTvis authored and h0tk3y committed Jan 9, 2021
1 parent 7bc9bcc commit 91de694
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/commonTest/kotlin/OrTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ class OrTest : Grammar<Nothing>() {
assertTrue(result.errors[0] is MismatchedToken)
assertTrue(result.errors[1] is UnexpectedEof)
}
}
}
2 changes: 1 addition & 1 deletion src/commonTest/kotlin/RepeatTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.github.h0tk3y.betterParse.lexer.*
import com.github.h0tk3y.betterParse.parser.*
import kotlin.test.*

class RepeatTest : Grammar<Nothing>() {
internal class RepeatTest : Grammar<Nothing>() {
override val rootParser: Parser<Nothing> get() = throw NoSuchElementException()

val a by regexToken("a")
Expand Down
4 changes: 2 additions & 2 deletions src/commonTest/kotlin/TestLiftToAst.kt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private fun SyntaxTree<*>.toTopDownStrings() = topDownNodesSequence()
it.item?.typeName()
}.toList()

class TestLiftToAst {
internal class TestLiftToAst {
@Test
fun continuousRange() {
val astParser = booleanGrammar.liftToSyntaxTreeGrammar(LiftToSyntaxTreeOptions(retainSkipped = true), structureParsers = null)
Expand Down Expand Up @@ -218,4 +218,4 @@ class TestLiftToAst {

assertTrue(value.children.size == 2 && value.children.all { it.parser === booleanGrammar.or })
}
}
}

0 comments on commit 91de694

Please sign in to comment.