File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ struct Personal: Codable {
17
17
struct TestStruct : Codable {
18
18
let str : String
19
19
let bool : Bool
20
- let float : Float
21
20
let int : Int
22
21
let uint : UInt
23
22
let double : Double
@@ -98,7 +97,6 @@ class JSONTests: XCTestCase {
98
97
let test = TestStruct (
99
98
str: " hello " ,
100
99
bool: true ,
101
- float: 3.14 ,
102
100
int: - 42 ,
103
101
uint: 42 ,
104
102
double: 1.234 ,
@@ -143,7 +141,6 @@ class JSONTests: XCTestCase {
143
141
let test = TestStruct (
144
142
str: " hello " ,
145
143
bool: true ,
146
- float: 3.14 ,
147
144
int: - 42 ,
148
145
uint: 42 ,
149
146
double: 1.234 ,
@@ -160,13 +157,6 @@ class JSONTests: XCTestCase {
160
157
161
158
let str = typedDict ? [ " str " ] as? String
162
159
let bool = typedDict ? [ " bool " ] as? Bool
163
- #if os(Linux)
164
- // the linux implementation of Dictionary has
165
- // some issues w/ type conversion to float.
166
- let float = typedDict ? [ " float " ] as? Decimal
167
- #else
168
- let float = typedDict ? [ " float " ] as? Float
169
- #endif
170
160
let int = typedDict ? [ " int " ] as? Int
171
161
let uint = typedDict ? [ " uint " ] as? UInt
172
162
let double = typedDict ? [ " double " ] as? Double
@@ -176,7 +166,6 @@ class JSONTests: XCTestCase {
176
166
177
167
XCTAssertEqual ( str, " hello " )
178
168
XCTAssertEqual ( bool, true )
179
- XCTAssertEqual ( float, 3.14 )
180
169
XCTAssertEqual ( int, - 42 )
181
170
XCTAssertEqual ( uint, 42 )
182
171
XCTAssertEqual ( double, 1.234 )
You can’t perform that action at this time.
0 commit comments