File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -77,45 +77,49 @@ private let largeUncommonRadixStrings: [String]
77
77
@inline ( never)
78
78
public func run_ParseIntFromSmallDecimal( N: Int ) {
79
79
var result = 0
80
- for _ in 0 ..< N {
80
+ let count = N*10
81
+ for _ in 0 ..< count {
81
82
for string in smallDecimalStrings {
82
83
result &+= Int ( string, radix: 10 ) !
83
84
}
84
85
}
85
- CheckResults ( result == smallValuesSum &* N )
86
+ CheckResults ( result == smallValuesSum &* count )
86
87
}
87
88
88
89
@inline ( never)
89
90
public func run_ParseIntFromSmallBinary( N: Int ) {
90
91
var result = 0
91
- for _ in 0 ..< N {
92
+ let count = N*10
93
+ for _ in 0 ..< count {
92
94
for string in smallBinaryStrings {
93
95
result &+= Int ( string, radix: 2 ) !
94
96
}
95
97
}
96
- CheckResults ( result == smallValuesSum &* N )
98
+ CheckResults ( result == smallValuesSum &* count )
97
99
}
98
100
99
101
@inline ( never)
100
102
public func run_ParseIntFromSmallHex( N: Int ) {
101
103
var result = 0
102
- for _ in 0 ..< N {
104
+ let count = N*10
105
+ for _ in 0 ..< count {
103
106
for string in smallHexStrings {
104
107
result &+= Int ( string, radix: 16 ) !
105
108
}
106
109
}
107
- CheckResults ( result == smallValuesSum &* N )
110
+ CheckResults ( result == smallValuesSum &* count )
108
111
}
109
112
110
113
@inline ( never)
111
114
public func run_ParseIntFromSmallUncommonRadix( N: Int ) {
112
115
var result = 0
113
- for _ in 0 ..< N {
116
+ let count = N*10
117
+ for _ in 0 ..< count {
114
118
for string in smallUncommonRadixStrings {
115
119
result &+= Int ( string, radix: uncommonRadix) !
116
120
}
117
121
}
118
- CheckResults ( result == smallValuesSum &* N )
122
+ CheckResults ( result == smallValuesSum &* count )
119
123
}
120
124
121
125
@inline ( never)
You can’t perform that action at this time.
0 commit comments