Fixing tests

This fixes a missing .whitespace in testForStatementWithContinue and handles indentation in testRepeatWhileStatement
This commit is contained in:
Marco Capano 2018-09-05 19:11:16 +02:00 committed by GitHub
parent b8bc4ff2c3
commit 2af2ec9d57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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("="),