1
0
mirror of https://github.com/chylex/IntelliJ-Rainbow-Brackets.git synced 2025-01-12 18:42:45 +01:00

Fix some tests

This commit is contained in:
张志豪 2019-04-12 13:15:26 +08:00
parent 9b1be1fe9e
commit f18e1d7937

View File

@ -47,9 +47,9 @@ class MigrateSettingsTest : LightCodeInsightFixtureTestCase() {
val darculaSchema = schemeGroup[DARCULA_SCHEME_NAME]?.get(0)
darculaSchema?.read(RainbowHighlighter.NAME_ROUND_BRACKETS).shouldBe(round.map { color(it) })
darculaSchema?.read(RainbowHighlighter.NAME_SQUIGGLY_BRACKETS).shouldBe(squiggly.map { color(it) })
darculaSchema?.read(RainbowHighlighter.NAME_SQUIGGLY_BRACKETS)?.take(3).shouldBe(squiggly.map { color(it) })
darculaSchema?.read(RainbowHighlighter.NAME_ANGLE_BRACKETS).shouldBe(round.map { color(it) })
darculaSchema?.read(RainbowHighlighter.NAME_SQUARE_BRACKETS).shouldBe(square.map { color(it) })
darculaSchema?.read(RainbowHighlighter.NAME_SQUARE_BRACKETS)?.take(3).shouldBe(square.map { color(it) })
}
fun testMigrateFromCustomSomeColorSchema() {
@ -80,6 +80,6 @@ class MigrateSettingsTest : LightCodeInsightFixtureTestCase() {
darculaSchema?.read(RainbowHighlighter.NAME_ROUND_BRACKETS).shouldBe(round.map { color(it) })
val defaultSchema = schemeGroup[DEFAULT_SCHEME_NAME]?.get(0)
defaultSchema?.read(RainbowHighlighter.NAME_SQUARE_BRACKETS).shouldBe(square.map { color(it) })
defaultSchema?.read(RainbowHighlighter.NAME_SQUARE_BRACKETS)?.take(3).shouldBe(square.map { color(it) })
}
}