Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
honghaoz committed Sep 28, 2024
1 parent 57ffc1f commit 28c0d01
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"location" : "https://github.com/honghaoz/ChouTi",
"state" : {
"branch" : "develop",
"revision" : "a297537df4807e4e0ec9c795fdb1dd3bc4f090bf"
"revision" : "06cc8abf6624095ccd8563e5e1d4ee14a72d3957"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion Project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"location" : "https://github.com/honghaoz/ChouTi",
"state" : {
"branch" : "develop",
"revision" : "a297537df4807e4e0ec9c795fdb1dd3bc4f090bf"
"revision" : "06cc8abf6624095ccd8563e5e1d4ee14a72d3957"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ public extension NSBezierPath {
path.closeSubpath()
@unknown default:
ChouTi.assertFailure("Unknown CGPath element type", metadata: ["type": "\(type)"])
continue
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ import ChouTiUI

class NSBezierPath_RoundedRectTests: XCTestCase {

func test_limitedCornerRadius() {
expect(BezierPath.limitedCornerRadius(rect: CGRect(x: 0, y: 0, width: 100, height: 50))) == 50 / BezierPath.shapeBreakRatio
expect(BezierPath.limitedCornerRadius(rect: CGRect(x: 0, y: 0, width: 50, height: 100))) == 50 / BezierPath.shapeBreakRatio
}

#if canImport(AppKit)
func test_invalidRect() {
let rect = CGRect(x: 0, y: 0, width: 0, height: 0)
Expand Down

0 comments on commit 28c0d01

Please sign in to comment.