7f87f191b6
* Update the project to Swift 5.4 - Splash now uses the Swift 5.4 toolchain. - Since Swift 5.4 now enables automatic test discovery on all supported platforms, all of the infrastructure that was previously used to maintain Linux unit testing compatibility has now been removed. * Remove LinuxMain.swift
23 lines
626 B
Swift
23 lines
626 B
Swift
/**
|
|
* 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.
|
|
class SyntaxHighlighterTestCase: XCTestCase {
|
|
private(set) var highlighter: SyntaxHighlighter<OutputFormatMock>!
|
|
private(set) var builder: OutputBuilderMock!
|
|
|
|
override func setUp() {
|
|
super.setUp()
|
|
builder = OutputBuilderMock()
|
|
highlighter = SyntaxHighlighter(format: OutputFormatMock(builder: builder))
|
|
}
|
|
}
|