-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This is needed, so the `animation` block is correctly parsed.
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package nl.dirkgroot.structurizr.dsl.parser | ||
|
||
import nl.dirkgroot.structurizr.dsl.support.StructurizrDSLParserTest | ||
import org.junit.jupiter.api.Test | ||
|
||
class LineWithIdentifierReferencesTest : StructurizrDSLParserTest() { | ||
@Test | ||
fun `single identifier reference on one line`() { | ||
assertPsiTree( | ||
""" | ||
someIdentifier | ||
""".trimIndent(), | ||
""" | ||
IdentifierReferences | ||
IdentifierName someIdentifier | ||
""".trimIndent() | ||
) | ||
} | ||
|
||
@Test | ||
fun `multiple identifier references on one line`() { | ||
assertPsiTree( | ||
""" | ||
someIdentifier1 someIdentifier2 | ||
""".trimIndent(), | ||
""" | ||
IdentifierReferences | ||
IdentifierName someIdentifier1 | ||
IdentifierName someIdentifier2 | ||
""".trimIndent() | ||
) | ||
} | ||
|
||
@Test | ||
fun `multiple lines with identifier references`() { | ||
assertPsiTree( | ||
""" | ||
someIdentifier1 someIdentifier2 | ||
someIdentifier3 | ||
someIdentifier4 | ||
""".trimIndent(), | ||
""" | ||
IdentifierReferences | ||
IdentifierName someIdentifier1 | ||
IdentifierName someIdentifier2 | ||
IdentifierReferences | ||
IdentifierName someIdentifier3 | ||
IdentifierReferences | ||
IdentifierName someIdentifier4 | ||
""".trimIndent() | ||
) | ||
} | ||
} |