Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the drawing #21

Merged
merged 16 commits into from
Oct 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix CanvasGrayscaleCurveIteratorTests
  • Loading branch information
eisukekusachi committed Oct 5, 2024
commit 95b4f3ededd45fbb3467c1125c39b751b612b7db
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,16 @@ final class CanvasGrayscaleCurveIteratorTests: XCTestCase {

if let result, let expectation = expectation.result {
XCTAssertEqual(
[result.previousPoint.location, result.startPoint.location, result.endPoint.location],
[expectation.previousPoint.location, expectation.startPoint.location, expectation.endPoint.location]
[
result.previousPoint,
result.startPoint,
result.endPoint
],
[
expectation.previousPoint,
expectation.startPoint,
expectation.endPoint
]
)
} else {
XCTAssertNil(result)
Expand Down Expand Up @@ -183,16 +191,16 @@ final class CanvasGrayscaleCurveIteratorTests: XCTestCase {
let expectation = expectationArray[i]
XCTAssertEqual(
[
result.previousPoint.location,
result.startPoint.location,
result.endPoint.location,
result.nextPoint.location
result.previousPoint,
result.startPoint,
result.endPoint,
result.nextPoint
],
[
expectation.previousPoint.location,
expectation.startPoint.location,
expectation.endPoint.location,
expectation.nextPoint.location
expectation.previousPoint,
expectation.startPoint,
expectation.endPoint,
expectation.nextPoint
]
)
}
Expand Down Expand Up @@ -257,8 +265,16 @@ final class CanvasGrayscaleCurveIteratorTests: XCTestCase {

if let result, let expectation = expectation.result {
XCTAssertEqual(
[result.previousPoint.location, result.startPoint.location, result.endPoint.location],
[expectation.previousPoint.location, expectation.startPoint.location, expectation.endPoint.location]
[
result.previousPoint,
result.startPoint,
result.endPoint
],
[
expectation.previousPoint,
expectation.startPoint,
expectation.endPoint
]
)
} else {
XCTAssertNil(result)
Expand Down