Skip to content

Commit c2b672f

Browse files
committed
Fix ns suffix mismatch
1 parent dbcb7fd commit c2b672f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/RegexBenchmark/Benchmark.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ struct InputListNSBenchmark: RegexBenchmark {
121121
/// A benchmark meant to be ran across multiple engines
122122
struct CrossBenchmark {
123123
/// Suffix added onto NSRegularExpression benchmarks
124-
static let nsSuffix = "_NS"
124+
static var nsSuffix: String { "_NS" }
125125

126126
/// The base name of the benchmark
127127
var baseName: String
@@ -219,7 +219,7 @@ struct CrossInputListBenchmark {
219219
targets: inputs
220220
))
221221
runner.register(InputListNSBenchmark(
222-
name: baseName + "NS",
222+
name: baseName + CrossBenchmark.nsSuffix,
223223
regex: regex,
224224
targets: inputs
225225
))

0 commit comments

Comments
 (0)