Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
212 changes: 106 additions & 106 deletions Deus.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Deus.xcodeproj/xcshareddata/xcschemes/Deus.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "494EFC002DDF36B200C66063"
BuildableName = "RelativityKitTests.xctest"
BlueprintName = "RelativityKitTests"
BuildableName = "RelativityCoreTests.xctest"
BlueprintName = "RelativityCoreTests"
ReferencedContainer = "container:Deus.xcodeproj">
</BuildableReference>
</TestableReference>
Expand All @@ -74,8 +74,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "49EF5D562DE20D36008AFB31"
BuildableName = "QuantumMechanicsTests.xctest"
BlueprintName = "QuantumMechanicsTests"
BuildableName = "QuantumMechanicsCoreTests.xctest"
BlueprintName = "QuantumMechanicsCoreTests"
ReferencedContainer = "container:Deus.xcodeproj">
</BuildableReference>
</TestableReference>
Expand All @@ -84,8 +84,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "49EF5D562DE20D36008AFB31"
BuildableName = "QuantumMechanicsTests.xctest"
BlueprintName = "QuantumMechanicsTests"
BuildableName = "QuantumMechanicsCoreTests.xctest"
BlueprintName = "QuantumMechanicsCoreTests"
ReferencedContainer = "container:Deus.xcodeproj">
</BuildableReference>
</TestableReference>
Expand Down
8 changes: 4 additions & 4 deletions Deus.xcodeproj/xcshareddata/xcschemes/Geometry.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4960AB472DDCE34E00EB1410"
BuildableName = "Geometry.framework"
BlueprintName = "Geometry"
BuildableName = "GeometryCore.framework"
BlueprintName = "GeometryCore"
ReferencedContainer = "container:Deus.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down Expand Up @@ -51,8 +51,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4960AB472DDCE34E00EB1410"
BuildableName = "Geometry.framework"
BlueprintName = "Geometry"
BuildableName = "GeometryCore.framework"
BlueprintName = "GeometryCore"
ReferencedContainer = "container:Deus.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
4 changes: 2 additions & 2 deletions Deus.xcodeproj/xcshareddata/xcschemes/GeometryTests.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4960AB4F2DDCE34E00EB1410"
BuildableName = "GeometryTests.xctest"
BlueprintName = "GeometryTests"
BuildableName = "GeometryCoreTests.xctest"
BlueprintName = "GeometryCoreTests"
ReferencedContainer = "container:Deus.xcodeproj">
</BuildableReference>
</TestableReference>
Expand Down
8 changes: 4 additions & 4 deletions Deus.xcodeproj/xcshareddata/xcschemes/RelativityKit.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "494EFBF82DDF36B100C66063"
BuildableName = "RelativityKit.framework"
BlueprintName = "RelativityKit"
BuildableName = "RelativityCore.framework"
BlueprintName = "RelativityCore"
ReferencedContainer = "container:Deus.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down Expand Up @@ -51,8 +51,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "494EFBF82DDF36B100C66063"
BuildableName = "RelativityKit.framework"
BlueprintName = "RelativityKit"
BuildableName = "RelativityCore.framework"
BlueprintName = "RelativityCore"
ReferencedContainer = "container:Deus.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "494EFC002DDF36B200C66063"
BuildableName = "RelativityKitTests.xctest"
BlueprintName = "RelativityKitTests"
BuildableName = "RelativityCoreTests.xctest"
BlueprintName = "RelativityCoreTests"
ReferencedContainer = "container:Deus.xcodeproj">
</BuildableReference>
</TestableReference>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import Testing
@testable import Geometry
@testable import GeometryCore

struct TwoDTests {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import Testing
@testable import Geometry
@testable import GeometryCore

struct BezierCurveTests {
@Test
Expand Down
2 changes: 1 addition & 1 deletion ObservationKit/Entity+QuarkLike.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import AppKit
import RealityKit
import QuantumMechanics
import QuantumMechanicsCore

/// Shape of a quark-like: a sphere.
@MainActor
Expand Down
2 changes: 1 addition & 1 deletion ObservationKit/NSColor+SingleColorLike.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import AppKit
import QuantumMechanics
import QuantumMechanicsCore

extension NSColor {
/// Converts a color-like from the Standard Model into an `NSColor`.
Expand Down
2 changes: 1 addition & 1 deletion ObservationKit/ObservationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import RealityKit
import QuantumMechanics
import QuantumMechanicsCore
import SwiftUI

/// `View` by which a simulation of particle physics is displayed.
Expand Down
2 changes: 1 addition & 1 deletion ObservationKitTests/Entity+QuarkLikeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import AppKit
@preconcurrency import RealityKit
import QuantumMechanics
import QuantumMechanicsCore
import Testing
@testable import ObservationKit

Expand Down
2 changes: 1 addition & 1 deletion ObservationKitTests/NSColor+SingleColorLikeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import AppKit
import QuantumMechanics
import QuantumMechanicsCore
import Testing
@testable import ObservationKit

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ extension SingleColorLike {
fatalError(
"Anticolor \(self) has an unknown counterpart: \(self.counterpart). "
+ "Conformance to the SingleColor protocol is restricted to the "
+ "QuantumMechanics framework; introductions of custom types will "
+ "likely result in errors such as this one."
+ "QuantumMechanicsCore framework; introductions of custom types "
+ "will likely result in errors such as this one."
)
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// conform.
public protocol ColoredParticleLike: ParticleLike {
/// The specific type of ``ColorLike``.
associatedtype ColorLike: QuantumMechanics.ColorLike
associatedtype ColorLike: QuantumMechanicsCore.ColorLike

/// Measured transformation under the SU(3) symmetry.
var colorLike: ColorLike { get }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// this program. If not, see https://www.gnu.org/licenses.
// ===-----------------------------------------------------------------------===

import Geometry
import GeometryCore
internal import Numerics

// MARK: - U(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import Testing
@testable import QuantumMechanics
@testable import QuantumMechanicsCore

struct AntiparticleTests {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import Testing
@testable import QuantumMechanics
@testable import QuantumMechanicsCore

struct AnticolorTests {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import Testing
@testable import QuantumMechanics
@testable import QuantumMechanicsCore

struct AnySingleColorLikeTests {
@Test(arguments: AnySingleColorLike.discretion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import Testing
@testable import QuantumMechanics
@testable import QuantumMechanicsCore

struct AnySingleColorTests {
@Suite("Equality")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import Testing
@testable import QuantumMechanics
@testable import QuantumMechanicsCore

@Suite("RandomAccessCollection+Pair tests")
struct RandomAccessCollectionPairTests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import Numerics
import Testing
@testable import QuantumMechanics
@testable import QuantumMechanicsCore

struct ComplexPlusRealTypeTests {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import Testing
@testable import QuantumMechanics
@testable import QuantumMechanicsCore

struct NegativePionTests {
private let downQuark = DownQuark(colorLike: red)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import Testing
@testable import QuantumMechanics
@testable import QuantumMechanicsCore

struct PositivePionTests {
private let upQuark = UpQuark(colorLike: red)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// ===-----------------------------------------------------------------------===

import Testing
@testable import QuantumMechanics
@testable import QuantumMechanicsCore

struct ApproximatorTests {
@Test
Expand Down
114 changes: 114 additions & 0 deletions QuantumMechanicsCoreTests/DiscretionTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
// ===-----------------------------------------------------------------------===
// Copyright © 2026 Supernova
//
// This file is part of the Deus open-source project.
//
// This program is free software: you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
// Foundation, either version 3 of the License, or (at your option) any later
// version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
// this program. If not, see https://www.gnu.org/licenses.
// ===-----------------------------------------------------------------------===

import Testing
@testable import QuantumMechanicsCore

struct AnySingleColorLikeDiscretionTests {
@Test(arguments: [
AnySingleColorLike(red), .init(Anti(red)), .init(green), .init(Anti(green)),
.init(blue), .init(Anti(blue))
])
func allKnownSingleColorsAndTheirCounterpartsAreIncludedInDiscretion(
_ singleColorLike: AnySingleColorLike
) {
#expect(
AnySingleColorLike.discretion.contains(where: { discreteSingleColorLike in
discreteSingleColorLike == singleColorLike
})
)
}
}

struct AnySingleColorDiscretionTests {
@Test(arguments: [AnySingleColor(red), .init(green), .init(blue)])
func allKnownSingleColorsAndTheirCounterpartsAreIncludedInDiscretion(
_ singleColor: AnySingleColor
) {
#expect(
AnySingleColor.discretion.contains(where: { discreteSingleColor in
discreteSingleColor == singleColor
})
)
}
}

struct AnyQuarkLikeDiscretionTests {
@Test(arguments: [
AnyQuarkLike(UpQuark(colorLike: red)), .init(Anti(UpQuark(colorLike: red))),
.init(UpQuark(colorLike: green)), .init(Anti(UpQuark(colorLike: green))),
.init(UpQuark(colorLike: blue)), .init(Anti(UpQuark(colorLike: blue))),
.init(DownQuark(colorLike: red)), .init(Anti(DownQuark(colorLike: red))),
.init(DownQuark(colorLike: green)),
.init(Anti(DownQuark(colorLike: green))), .init(DownQuark(colorLike: blue)),
.init(Anti(DownQuark(colorLike: blue))), .init(CharmQuark(colorLike: red)),
.init(Anti(CharmQuark(colorLike: red))),
.init(CharmQuark(colorLike: green)),
.init(Anti(CharmQuark(colorLike: green))),
.init(CharmQuark(colorLike: blue)),
.init(Anti(CharmQuark(colorLike: blue))),
.init(StrangeQuark(colorLike: red)),
.init(Anti(StrangeQuark(colorLike: red))),
.init(StrangeQuark(colorLike: green)),
.init(Anti(StrangeQuark(colorLike: green))),
.init(StrangeQuark(colorLike: blue)),
.init(Anti(StrangeQuark(colorLike: blue))),
.init(BottomQuark(colorLike: red)),
.init(Anti(BottomQuark(colorLike: red))),
.init(BottomQuark(colorLike: green)),
.init(Anti(BottomQuark(colorLike: green))),
.init(BottomQuark(colorLike: blue)),
.init(Anti(BottomQuark(colorLike: blue))), .init(TopQuark(colorLike: red)),
.init(Anti(TopQuark(colorLike: red))), .init(TopQuark(colorLike: green)),
.init(Anti(TopQuark(colorLike: green))), .init(TopQuark(colorLike: blue)),
.init(Anti(TopQuark(colorLike: blue)))
])
func allKnownQuarksAndTheirCounterpartsAreIncludedInDiscretion(
_ quarkLike: AnyQuarkLike
) {
#expect(
AnyQuarkLike.discretion.contains(where: { discreteQuarkLike in
discreteQuarkLike == quarkLike
})
)
}
}

struct AnyQuarkDiscretionTests {
@Test(arguments: [
AnyQuark(UpQuark(colorLike: red)), .init(UpQuark(colorLike: green)),
.init(UpQuark(colorLike: blue)), .init(DownQuark(colorLike: red)),
.init(DownQuark(colorLike: green)), .init(DownQuark(colorLike: blue)),
.init(CharmQuark(colorLike: red)), .init(CharmQuark(colorLike: green)),
.init(CharmQuark(colorLike: blue)), .init(StrangeQuark(colorLike: red)),
.init(StrangeQuark(colorLike: green)), .init(StrangeQuark(colorLike: blue)),
.init(BottomQuark(colorLike: red)), .init(BottomQuark(colorLike: green)),
.init(BottomQuark(colorLike: blue)), .init(TopQuark(colorLike: red)),
.init(TopQuark(colorLike: green)), .init(TopQuark(colorLike: blue))
])
func allKnownQuarksAndTheirCounterpartsAreIncludedInDiscretion(
_ quark: AnyQuark
) {
#expect(
AnyQuark.discretion.contains(where: { discreteQuark in
discreteQuark == quark
})
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
${licensing.header()}

import Testing
@testable import QuantumMechanics
@testable import QuantumMechanicsCore

% for index, erasure in enumerate(erasures):
% for opposability in ['Like', '']:
Expand Down
Loading