Skip to content

Commit 3ffeb24

Browse files
author
Max Moiseev
committed
[test] Simplify expression in a test
This expression became too complex due to the changes introduced in swiftlang/swift#11044
1 parent ee8221b commit 3ffeb24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TestFoundation/TestNSDecimal.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,13 @@ class TestNSDecimal: XCTestCase {
180180
}
181181

182182
func test_ExplicitConstruction() {
183+
let reserved: UInt32 = 1<<18 + 1<<17 + 1
183184
var explicit = Decimal(
184185
_exponent: 0x17f,
185186
_length: 0xff,
186187
_isNegative: 3,
187188
_isCompact: 4,
188-
_reserved: UInt32(1<<18 + 1<<17 + 1),
189+
_reserved: reserved,
189190
_mantissa: (6, 7, 8, 9, 10, 11, 12, 13)
190191
)
191192
XCTAssertEqual(0x7f, explicit._exponent)

0 commit comments

Comments
 (0)