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 {
1717struct TestStruct : Codable {
1818 let str : String
1919 let bool : Bool
20- let float : Float
2120 let int : Int
2221 let uint : UInt
2322 let double : Double
@@ -98,7 +97,6 @@ class JSONTests: XCTestCase {
9897 let test = TestStruct (
9998 str: " hello " ,
10099 bool: true ,
101- float: 3.14 ,
102100 int: - 42 ,
103101 uint: 42 ,
104102 double: 1.234 ,
@@ -143,7 +141,6 @@ class JSONTests: XCTestCase {
143141 let test = TestStruct (
144142 str: " hello " ,
145143 bool: true ,
146- float: 3.14 ,
147144 int: - 42 ,
148145 uint: 42 ,
149146 double: 1.234 ,
@@ -160,13 +157,6 @@ class JSONTests: XCTestCase {
160157
161158 let str = typedDict ? [ " str " ] as? String
162159 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
170160 let int = typedDict ? [ " int " ] as? Int
171161 let uint = typedDict ? [ " uint " ] as? UInt
172162 let double = typedDict ? [ " double " ] as? Double
@@ -176,7 +166,6 @@ class JSONTests: XCTestCase {
176166
177167 XCTAssertEqual ( str, " hello " )
178168 XCTAssertEqual ( bool, true )
179- XCTAssertEqual ( float, 3.14 )
180169 XCTAssertEqual ( int, - 42 )
181170 XCTAssertEqual ( uint, 42 )
182171 XCTAssertEqual ( double, 1.234 )
You can’t perform that action at this time.
0 commit comments