Skip to content

Commit

Permalink
Add sample variants file for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Jun 14, 2020
1 parent ecca1f2 commit d64165a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Tests/Variants/sample.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/local/bin/swift-sh
import AnyLint // @Flinesoft == wip/cg_template-system

try Lint.reportResultsToFile(arguments: CommandLine.arguments) {
// MARK: PseudoCheck
try Lint.checkFilePaths(
checkInfo: "PseudoCheck: Checks if the file `Pseudo.md` exists.",
regex: #"^Pseudo\.md$"#,
matchingExamples: ["Pseudo.md"],
nonMatchingExamples: ["Pseudo.markdown", "PSEUDO.md"],
violateIfNoMatchesFound: true
)
}

0 comments on commit d64165a

Please sign in to comment.