Skip to content

Commit e0baaf2

Browse files
committed
add test for standard impl of CGAffineTransform.concatenating
1 parent de77dba commit e0baaf2

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Tests/SVGViewTests/CGTests.swift

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Generated by make generate-test-cases
2+
3+
import XCTest
4+
@testable import SVGView
5+
6+
class CGTests: BaseTestCase {
7+
8+
func testTransformConcatenation() {
9+
let transform1 = CGAffineTransform(translationX: 5, y: 10)
10+
let transform2 = CGAffineTransform(scaleX: 2, y: 3)
11+
let combined = transform1.concatenating(transform2)
12+
13+
XCTAssertEqual(combined.a, 2)
14+
XCTAssertEqual(combined.d, 3)
15+
XCTAssertEqual(combined.tx, 10)
16+
XCTAssertEqual(combined.ty, 30)
17+
}
18+
19+
}

0 commit comments

Comments
 (0)