Skip to content

Commit

Permalink
Make classes final
Browse files Browse the repository at this point in the history
Gardening, NFC.
  • Loading branch information
dduan committed Nov 26, 2019
1 parent 5b25146 commit 9ed91cc
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Tests/FileCheckTests/DAGSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import FileCheck
import XCTest
import Foundation

class DAGSpec : XCTestCase {
final class DAGSpec : XCTestCase {
func testPrefixOrderInvariant() {
XCTAssert(fileCheckOutput(of: .stdout, withPrefixes: ["BA", "AA"]) {
// BA-DAG: this is the string to be {{matched}}
Expand Down
2 changes: 1 addition & 1 deletion Tests/FileCheckTests/DefinesSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import FileCheck
import XCTest
import Foundation

class DefinesSpec : XCTestCase {
final class DefinesSpec : XCTestCase {
func testGlobalDefines() {
XCTAssert(fileCheckOutput(of: .stdout, withPrefixes: ["PASSDEF"], withGlobals: ["VALUE":"10"]) {
// PASSDEF: Value = [[VALUE]]
Expand Down
2 changes: 1 addition & 1 deletion Tests/FileCheckTests/EmptySpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import FileCheck
import XCTest
import Foundation

class EmptySpec : XCTestCase {
final class EmptySpec : XCTestCase {
func testEmptyError() {
XCTAssert(fileCheckOutput(of: .stdout, withPrefixes: ["EMPTY-ERR"]) {
// EMPTY-ERR: FileCheck error: input from file descriptor stdout is empty.
Expand Down
2 changes: 1 addition & 1 deletion Tests/FileCheckTests/FileCheckSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import FileCheck
import XCTest
import Foundation

class FileCheckSpec : XCTestCase {
final class FileCheckSpec : XCTestCase {
func testCustomInputBuffer() {
XCTAssert(fileCheckOutput(of: .stdout, withPrefixes: ["CUSTOMEMPTYBUF-ERR"]) {
// CUSTOMEMPTYBUF-ERR: error: no check strings found with prefixes
Expand Down
2 changes: 1 addition & 1 deletion Tests/FileCheckTests/LabelSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import FileCheck
import XCTest
import Foundation

class LabelSpec : XCTestCase {
final class LabelSpec : XCTestCase {
let outputABC = {
print([
"label0:",
Expand Down
2 changes: 1 addition & 1 deletion Tests/FileCheckTests/LineCountSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import FileCheck
import XCTest
import Foundation

class LineCountSpec : XCTestCase {
final class LineCountSpec : XCTestCase {
func testLineCount() {
let txt = ((1...8).map({ "\($0)" }) + [
"9 aaa"
Expand Down
2 changes: 1 addition & 1 deletion Tests/FileCheckTests/MultiPrefixSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import FileCheck
import XCTest
import Foundation

class MultiPrefixSpec : XCTestCase {
final class MultiPrefixSpec : XCTestCase {
func testMultiplePrefixSubstr() {
XCTAssert(fileCheckOutput(of: .stdout, withPrefixes: ["CHECKER1", "CHECK"]) {
// CHECKER1: fo{{o}}
Expand Down
2 changes: 1 addition & 1 deletion Tests/FileCheckTests/RegexScopeSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import FileCheck
import XCTest
import Foundation

class RegexScopeSpec : XCTestCase {
final class RegexScopeSpec : XCTestCase {
func testRegexScope() {
let block = { () -> () in
// CHECK: [[LOCAL:loc.*]]
Expand Down
2 changes: 1 addition & 1 deletion Tests/FileCheckTests/VariableRefSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import FileCheck
import XCTest
import Foundation

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

0 comments on commit 9ed91cc

Please sign in to comment.