//
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//

import XCTest
import SignalServiceKit

class CGPointExtensionsTest: XCTestCase {
    func testPlusEquals() throws {
        var point = CGPoint(x: 1, y: 2)
        point += CGPoint(x: 3, y: 4)
        XCTAssertEqual(point, CGPoint(x: 4, y: 6))
    }

    func testTimesEquals() throws {
        var point = CGPoint(x: 1, y: 2)
        point *= 2
        XCTAssertEqual(point, CGPoint(x: 2, y: 4))
    }
}
