From 2af2ec9d57326e5dc390fab5b92ec3cfb59f1f80 Mon Sep 17 00:00:00 2001 From: Marco Capano Date: Wed, 5 Sep 2018 19:11:16 +0200 Subject: [PATCH] Fixing tests This fixes a missing .whitespace in testForStatementWithContinue and handles indentation in testRepeatWhileStatement --- Tests/SplashTests/Tests/StatementTests.swift | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Tests/SplashTests/Tests/StatementTests.swift b/Tests/SplashTests/Tests/StatementTests.swift index ad94f15..9d6b4e5 100644 --- a/Tests/SplashTests/Tests/StatementTests.swift +++ b/Tests/SplashTests/Tests/StatementTests.swift @@ -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("="),