@@ -181,13 +181,13 @@ final class LayerTreePathTests: XCTestCase {
181181 x: 300 , y: 50 , space: . absolute)
182182 var c = LayerTree . Builder. createQuadratic ( from: quad, last: Point ( 0 , 50 ) )
183183
184- XCTAssertEqual ( c, cubic ( 300 , 50 , 100 * twoThirds , 16.6666641 , 100 * twoThirds + 150 * twoThirds , 16.6666641 ) )
184+ XCTAssertEqual ( c, cubic ( 300 , 50 , 66.66667 , 16.666664 , 166.66666 , 16.666664 ) )
185185
186186 //quad with control point to the right
187187 quad = . quadratic( x1: 200 , y1: 0 ,
188188 x: 300 , y: 50 , space: . absolute)
189189 c = LayerTree . Builder. createQuadratic ( from: quad, last: Point ( 0 , 50 ) )
190- XCTAssertEqual ( c, cubic ( 300 , 50 , 200 * twoThirds , 16.6666641 , 200 * twoThirds + 150 * twoThirds , 16.6666641 ) )
190+ XCTAssertEqual ( c, cubic ( 300 , 50 , 133.33334 , 16.666664 , 233.33333 , 16.666664 ) )
191191 }
192192
193193 func testQuadraticSmoothAbsolute( ) {
@@ -206,7 +206,8 @@ final class LayerTreePathTests: XCTestCase {
206206 let domSegment = DOM . Path. Segment. quadraticSmooth ( x: 10.0 , y: 10.0 , space: . relative)
207207 let segment = LayerTree . Builder. makeSegment ( from: domSegment, last: . init( 10 , 10 ) , previous: nil )
208208
209- XCTAssertEqual ( segment, . cubic( to: . init( 20.0 , 20.0 ) , control1: . init( 10 , 10 ) , control2: . init( 13.333334 , 10 ) ) )
209+
210+ XCTAssertEqual ( segment, . cubic( to: . init( 20.0 , 20.0 ) , control1: . init( 10 , 10 ) , control2: . init( 13.333334 , 13.333334 ) ) )
210211 }
211212
212213 func testDOMCubicSmooth( ) {
0 commit comments