File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -169,11 +169,11 @@ IntervalTestSuite.test("CustomStringConvertible/CustomDebugStringConvertible") {
169
169
expectEqual ( " 0.0...0.1 " , String ( X ( 0.0 ) ... X ( 0.1 ) ) )
170
170
171
171
expectEqual (
172
- " HalfOpenInterval(X(0.0)..<X(0.1 )) " ,
173
- String ( reflecting: HalfOpenInterval ( X ( 0.0 ) ..< X ( 0.1 ) ) ) )
172
+ " HalfOpenInterval(X(0.0)..<X(0.5 )) " ,
173
+ String ( reflecting: HalfOpenInterval ( X ( 0.0 ) ..< X ( 0.5 ) ) ) )
174
174
expectEqual (
175
- " ClosedInterval(X(0.0)...X(0.1 )) " ,
176
- String ( reflecting: ClosedInterval ( X ( 0.0 ) ... X ( 0.1 ) ) ) )
175
+ " ClosedInterval(X(0.0)...X(0.5 )) " ,
176
+ String ( reflecting: ClosedInterval ( X ( 0.0 ) ... X ( 0.5 ) ) ) )
177
177
}
178
178
179
179
IntervalTestSuite . test ( " rdar12016900 " ) {
Original file line number Diff line number Diff line change @@ -426,16 +426,18 @@ if let strArr = objImplicitOpt as? [String] {
426
426
}
427
427
428
428
// Casting an array of numbers to different numbers.
429
- // CHECK: Numbers-as-doubles cast produces [3.14159 , 2.71828, 0.0]
430
- obj = ( [ 3.14159 , 2.71828 , 0 ] as [ Double ] ) as AnyObject
429
+ // CHECK: Numbers-as-doubles cast produces [3.9375 , 2.71828, 0.0]
430
+ obj = ( [ 3.9375 , 2.71828 , 0 ] as [ Double ] ) as AnyObject
431
431
if let doubleArr = obj as? [ Double ] {
432
+ print ( sizeof ( Double . self) )
432
433
print ( " Numbers-as-doubles cast produces \( doubleArr) " )
433
434
} else {
434
435
print ( " Numbers-as-doubles failed " )
435
436
}
436
437
437
- // CHECK: Numbers-as-floats cast produces [3.14159{{.*}} , 2.71828{{.*}}, 0.0]
438
+ // CHECK: Numbers-as-floats cast produces [3.9375 , 2.71828{{.*}}, 0.0]
438
439
if let floatArr = obj as? [ Float ] {
440
+ print ( sizeof ( Float . self) )
439
441
print ( " Numbers-as-floats cast produces \( floatArr) " )
440
442
} else {
441
443
print ( " Numbers-as-floats failed " )
You can’t perform that action at this time.
0 commit comments