Skip to content

Commit 9095f21

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

2 files changed

Lines changed: 20 additions & 4 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+
}

Tests/SVGViewTests/SVGCustomTests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Generated by make generate-test-cases
2-
31
import XCTest
42
@testable import SVGView
53

@@ -20,5 +18,4 @@ class SVGCustomTests: BaseTestCase {
2018
func testViewport02() {
2119
compareToReference("viewport-02")
2220
}
23-
24-
}
21+
}

0 commit comments

Comments
 (0)