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("{"), .plainText("{"),
.whitespace(" "), .whitespace(" "),
.token("continue",.keyword), .token("continue",.keyword),
.whitespace(" "),
.plainText("}") .plainText("}")
]) ])
} }
@ -232,17 +233,9 @@ final class StatementTests: SyntaxHighlighterTestCase {
.whitespace(" "), .whitespace(" "),
.plainText("{"), .plainText("{"),
.whitespace("\n "), .whitespace("\n "),
.whitespace(" "),
.whitespace(" "),
.whitespace(" "),
.whitespace(" "),
.token("print", .call), .token("print", .call),
.plainText("(x)"), .plainText("(x)"),
.whitespace("\n "), .whitespace("\n "),
.whitespace(" "),
.whitespace(" "),
.whitespace(" "),
.whitespace(" "),
.plainText("x"), .plainText("x"),
.whitespace(" "), .whitespace(" "),
.plainText("="), .plainText("="),