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 import CoreGraphics
let package = Package( let package = Package(
name: "SwiftMathRender", name: "SwiftMath",
products: [ products: [
// Products define the executables and libraries a package produces, and make them visible to other packages. // Products define the executables and libraries a package produces, and make them visible to other packages.
.library( .library(
name: "SwiftMathRender", name: "SwiftMath",
targets: ["SwiftMathRender"]), targets: ["SwiftMath"]),
], ],
dependencies: [ dependencies: [
// Dependencies declare other packages that this package depends on. // 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 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. // Targets can depend on other targets in this package, and on products in packages this package depends on.
.target( .target(
name: "SwiftMathRender", name: "SwiftMath",
dependencies: [], dependencies: [],
resources: [ resources: [
.copy("mathFonts.bundle") .copy("mathFonts.bundle")
]), ]),
.testTarget( .testTarget(
name: "SwiftMathRenderTests", name: "SwiftMathTests",
dependencies: ["SwiftMathRender"]), dependencies: ["SwiftMath"]),
] ]
) )

View File

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

View File

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

View File

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