2018-08-24 18:42:07 +02:00
|
|
|
/**
|
|
|
|
* Splash
|
|
|
|
* Copyright (c) John Sundell 2018
|
|
|
|
* MIT license - see LICENSE.md
|
|
|
|
*/
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import XCTest
|
|
|
|
import Splash
|
|
|
|
|
|
|
|
/// Test case used as an abstract base class for all tests relating to
|
|
|
|
/// syntax highlighting. For all such tests, the Swift grammar is used.
|
2018-08-27 00:14:48 +02:00
|
|
|
class SyntaxHighlighterTestCase: SplashTestCase {
|
2018-08-24 18:42:07 +02:00
|
|
|
private(set) var highlighter: SyntaxHighlighter<OutputFormatMock>!
|
|
|
|
private(set) var builder: OutputBuilderMock!
|
|
|
|
|
|
|
|
override func setUp() {
|
|
|
|
super.setUp()
|
|
|
|
builder = OutputBuilderMock()
|
|
|
|
highlighter = SyntaxHighlighter(format: OutputFormatMock(builder: builder))
|
|
|
|
}
|
|
|
|
}
|