Skip to content

Commit 9ed91cc

Browse files
committed
Make classes final
Gardening, NFC.
1 parent 5b25146 commit 9ed91cc

9 files changed

+9
-9
lines changed

Tests/FileCheckTests/DAGSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import FileCheck
22
import XCTest
33
import Foundation
44

5-
class DAGSpec : XCTestCase {
5+
final class DAGSpec : XCTestCase {
66
func testPrefixOrderInvariant() {
77
XCTAssert(fileCheckOutput(of: .stdout, withPrefixes: ["BA", "AA"]) {
88
// BA-DAG: this is the string to be {{matched}}

Tests/FileCheckTests/DefinesSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import FileCheck
22
import XCTest
33
import Foundation
44

5-
class DefinesSpec : XCTestCase {
5+
final class DefinesSpec : XCTestCase {
66
func testGlobalDefines() {
77
XCTAssert(fileCheckOutput(of: .stdout, withPrefixes: ["PASSDEF"], withGlobals: ["VALUE":"10"]) {
88
// PASSDEF: Value = [[VALUE]]

Tests/FileCheckTests/EmptySpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import FileCheck
22
import XCTest
33
import Foundation
44

5-
class EmptySpec : XCTestCase {
5+
final class EmptySpec : XCTestCase {
66
func testEmptyError() {
77
XCTAssert(fileCheckOutput(of: .stdout, withPrefixes: ["EMPTY-ERR"]) {
88
// EMPTY-ERR: FileCheck error: input from file descriptor stdout is empty.

Tests/FileCheckTests/FileCheckSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import FileCheck
22
import XCTest
33
import Foundation
44

5-
class FileCheckSpec : XCTestCase {
5+
final class FileCheckSpec : XCTestCase {
66
func testCustomInputBuffer() {
77
XCTAssert(fileCheckOutput(of: .stdout, withPrefixes: ["CUSTOMEMPTYBUF-ERR"]) {
88
// CUSTOMEMPTYBUF-ERR: error: no check strings found with prefixes

Tests/FileCheckTests/LabelSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import FileCheck
22
import XCTest
33
import Foundation
44

5-
class LabelSpec : XCTestCase {
5+
final class LabelSpec : XCTestCase {
66
let outputABC = {
77
print([
88
"label0:",

Tests/FileCheckTests/LineCountSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import FileCheck
33
import XCTest
44
import Foundation
55

6-
class LineCountSpec : XCTestCase {
6+
final class LineCountSpec : XCTestCase {
77
func testLineCount() {
88
let txt = ((1...8).map({ "\($0)" }) + [
99
"9 aaa"

Tests/FileCheckTests/MultiPrefixSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import FileCheck
22
import XCTest
33
import Foundation
44

5-
class MultiPrefixSpec : XCTestCase {
5+
final class MultiPrefixSpec : XCTestCase {
66
func testMultiplePrefixSubstr() {
77
XCTAssert(fileCheckOutput(of: .stdout, withPrefixes: ["CHECKER1", "CHECK"]) {
88
// CHECKER1: fo{{o}}

Tests/FileCheckTests/RegexScopeSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import FileCheck
22
import XCTest
33
import Foundation
44

5-
class RegexScopeSpec : XCTestCase {
5+
final class RegexScopeSpec : XCTestCase {
66
func testRegexScope() {
77
let block = { () -> () in
88
// CHECK: [[LOCAL:loc.*]]

Tests/FileCheckTests/VariableRefSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import FileCheck
22
import XCTest
33
import Foundation
44

5-
class VariableRefSpec : XCTestCase {
5+
final class VariableRefSpec : XCTestCase {
66
func testSameLineVarRef() {
77
XCTAssert(fileCheckOutput(of: .stdout) {
88
// CHECK: op1 [[REG:r[0-9]+]], {{r[0-9]+}}, [[REG]]

0 commit comments

Comments
 (0)