Skip to content

Commit d48da28

Browse files
committed
Sync .gitignore and other pending changes
1 parent 6ff7572 commit d48da28

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ Thumbs.db
2323
!CODE_OF_CONDUCT.md
2424
!SECURITY.md
2525
!**/*.docc/**/*.md
26+
27+
28+
# SwiftLint Remote Config Cache
29+
.swiftlint/RemoteConfigCache

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ let package = Package(
4848
name: "IEEE 754".tests,
4949
dependencies: [
5050
"IEEE 754",
51+
.target(name: "CIEEE754", condition: .when(platforms: [.macOS, .linux, .iOS, .tvOS, .watchOS])),
5152
.product(name: "StandardsTestSupport", package: "swift-standards")
5253
]
5354
)

Tests/IEEE 754 Tests/ExoticEdgeCases Tests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ struct DoubleExponentSweepTests {
143143
for expValue in exponents {
144144
// Create a Double with this exponent and significand = 1.0
145145
let biasedExp = expValue - 1023
146-
let value = pow(2.0, Double(biasedExp))
146+
let value = Double(biasedExp).power(2)
147147

148148
let bytes = value.bytes()
149149
let restored = Double(bytes: bytes)
@@ -187,7 +187,7 @@ struct FloatExponentSweepTests {
187187

188188
for expValue in exponents {
189189
let biasedExp = expValue - 127
190-
let value = pow(Float(2.0), Float(biasedExp))
190+
let value = Float(biasedExp).power(2)
191191

192192
let bytes = value.bytes()
193193
let restored = Float(bytes: bytes)

0 commit comments

Comments
 (0)