Fixing tests
This fixes a missing .whitespace in testForStatementWithContinue and handles indentation in testRepeatWhileStatement
This commit is contained in:
parent
b8bc4ff2c3
commit
2af2ec9d57
@ -206,6 +206,7 @@ final class StatementTests: SyntaxHighlighterTestCase {
|
||||
.plainText("{"),
|
||||
.whitespace(" "),
|
||||
.token("continue",.keyword),
|
||||
.whitespace(" "),
|
||||
.plainText("}")
|
||||
])
|
||||
}
|
||||
@ -231,18 +232,10 @@ final class StatementTests: SyntaxHighlighterTestCase {
|
||||
.token("repeat", .keyword),
|
||||
.whitespace(" "),
|
||||
.plainText("{"),
|
||||
.whitespace("\n"),
|
||||
.whitespace(" "),
|
||||
.whitespace(" "),
|
||||
.whitespace(" "),
|
||||
.whitespace(" "),
|
||||
.whitespace("\n "),
|
||||
.token("print", .call),
|
||||
.plainText("(x)"),
|
||||
.whitespace("\n"),
|
||||
.whitespace(" "),
|
||||
.whitespace(" "),
|
||||
.whitespace(" "),
|
||||
.whitespace(" "),
|
||||
.whitespace("\n "),
|
||||
.plainText("x"),
|
||||
.whitespace(" "),
|
||||
.plainText("="),
|
||||
|
Loading…
x
Reference in New Issue
Block a user