Skip to content

Commit 91de694

Browse files
CommanderTvish0tk3y
authored andcommitted
Make tests internal
1 parent 7bc9bcc commit 91de694

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/commonTest/kotlin/OrTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ class OrTest : Grammar<Nothing>() {
2626
assertTrue(result.errors[0] is MismatchedToken)
2727
assertTrue(result.errors[1] is UnexpectedEof)
2828
}
29-
}
29+
}

src/commonTest/kotlin/RepeatTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import com.github.h0tk3y.betterParse.lexer.*
55
import com.github.h0tk3y.betterParse.parser.*
66
import kotlin.test.*
77

8-
class RepeatTest : Grammar<Nothing>() {
8+
internal class RepeatTest : Grammar<Nothing>() {
99
override val rootParser: Parser<Nothing> get() = throw NoSuchElementException()
1010

1111
val a by regexToken("a")

src/commonTest/kotlin/TestLiftToAst.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private fun SyntaxTree<*>.toTopDownStrings() = topDownNodesSequence()
7878
it.item?.typeName()
7979
}.toList()
8080

81-
class TestLiftToAst {
81+
internal class TestLiftToAst {
8282
@Test
8383
fun continuousRange() {
8484
val astParser = booleanGrammar.liftToSyntaxTreeGrammar(LiftToSyntaxTreeOptions(retainSkipped = true), structureParsers = null)
@@ -218,4 +218,4 @@ class TestLiftToAst {
218218

219219
assertTrue(value.children.size == 2 && value.children.all { it.parser === booleanGrammar.or })
220220
}
221-
}
221+
}

0 commit comments

Comments
 (0)