Renamed the package.

This commit is contained in:
Michael Griebling
2023-01-18 11:42:38 -05:00
parent b4ea730033
commit c129258845
27 changed files with 10 additions and 11 deletions

View File

@@ -5,12 +5,12 @@ import PackageDescription
import CoreGraphics
let package = Package(
name: "SwiftMathRender",
name: "SwiftMath",
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "SwiftMathRender",
targets: ["SwiftMathRender"]),
name: "SwiftMath",
targets: ["SwiftMath"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
@@ -20,13 +20,13 @@ let package = Package(
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "SwiftMathRender",
name: "SwiftMath",
dependencies: [],
resources: [
.copy("mathFonts.bundle")
]),
.testTarget(
name: "SwiftMathRenderTests",
dependencies: ["SwiftMathRender"]),
name: "SwiftMathTests",
dependencies: ["SwiftMath"]),
]
)

View File

@@ -1,5 +1,5 @@
import XCTest
@testable import SwiftMathRender
@testable import SwiftMath
//
// MathRenderSwiftTests.swift

View File

@@ -1,5 +1,5 @@
import XCTest
@testable import SwiftMathRender
@testable import SwiftMath
//
// MathRenderSwiftTests.swift

View File

@@ -1,5 +1,5 @@
import XCTest
@testable import SwiftMathRender
@testable import SwiftMath
//
// MathTypesetterTests.swift
@@ -11,8 +11,7 @@ import XCTest
extension CGPoint {
func isEqual(to p:CGPoint, accuracy:CGFloat) -> Bool {
let p1 = self
return abs(p1.x - p.x) < accuracy && abs(p1.y - p.y) < accuracy
abs(self.x - p.x) < accuracy && abs(self.y - p.y) < accuracy
}
}