Skip to content

Commit 28dbeb5

Browse files
committed
[benchmark] RomanNumbers: Use CheckResults
1 parent 384cb5a commit 28dbeb5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

benchmark/single-source/RomanNumbers.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ extension BinaryInteger {
8383
@inline(never)
8484
func checkRomanNumerals(upTo limit: Int) {
8585
for i in 0 ..< limit {
86-
guard Int(romanNumeral: identity(i.romanNumeral)) == i else {
87-
fatalError()
88-
}
86+
CheckResults(Int(romanNumeral: identity(i.romanNumeral)) == i)
8987
}
9088
}
9189

0 commit comments

Comments
 (0)