zeropoint-node 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -105
- package/dist/__tests__/api/ProductionAPI.test.js +20 -0
- package/dist/__tests__/artifacts/ArtifactRegistry.test.js +248 -0
- package/dist/__tests__/basic.test.js +104 -0
- package/dist/__tests__/config/constants.test.js +20 -0
- package/dist/__tests__/consciousness/ConsciousnessField.test.js +20 -0
- package/dist/__tests__/consciousness/SelfEvolvingConsciousness.test.js +185 -0
- package/dist/__tests__/core/AbstractField.test.js +81 -0
- package/dist/__tests__/core/CoilMixin.test.js +20 -0
- package/dist/__tests__/core/CoilSystem.test.js +20 -0
- package/dist/__tests__/core/ComplianceSystem.test.js +141 -0
- package/dist/__tests__/core/InfiniteDimensionalRefactor.test.js +258 -0
- package/dist/__tests__/core/LivingAdapter.test.js +31 -0
- package/dist/__tests__/core/MathUtils.test.js +20 -0
- package/dist/__tests__/core/NetworkNode.test.js +20 -0
- package/dist/__tests__/core/Observer.test.js +20 -0
- package/dist/__tests__/core/OperationRegistry.test.js +48 -0
- package/dist/__tests__/core/PatternRecognition.test.js +20 -0
- package/dist/__tests__/core/PatternRegistry.test.js +20 -0
- package/dist/__tests__/core/ScientificCompliance.test.js +58 -0
- package/dist/__tests__/core/SharedConstants.test.js +20 -0
- package/dist/__tests__/core/UnifiedMetaphysicalInterface.test.js +20 -0
- package/dist/__tests__/core/UnifiedSystem.test.js +20 -0
- package/dist/__tests__/core/UnifiedTypes.test.js +20 -0
- package/dist/__tests__/core/UnifiedVoidEquations.test.js +20 -0
- package/dist/__tests__/core/VortexMathAdapter.test.js +31 -0
- package/dist/__tests__/core/ZeroPoint.test.js +71 -0
- package/dist/__tests__/core/ZeroPointSystem.test.js +219 -0
- package/dist/__tests__/emergence/patterns.test.js +20 -0
- package/dist/__tests__/field/EmergenceLedger.test.js +20 -0
- package/dist/__tests__/field/ObserverAwareField.test.js +20 -0
- package/dist/__tests__/field/ResonanceConsensus.test.js +20 -0
- package/dist/__tests__/git-integration.test.js +201 -0
- package/dist/__tests__/globalSetup.js +80 -0
- package/dist/__tests__/globalTeardown.js +28 -0
- package/dist/__tests__/index.test.js +20 -0
- package/dist/__tests__/integration/ZeroPointIntegration.test.js +221 -0
- package/dist/__tests__/integrity/FieldIntegrity.test.js +20 -0
- package/dist/__tests__/knowledge/KnowledgeSystem.test.js +158 -0
- package/dist/__tests__/knowledge/KnowledgeSystemAnalysis.test.js +219 -0
- package/dist/__tests__/knowledge/KnowledgeSystemAutoGenerated.test.js +41 -0
- package/dist/__tests__/laws/MetaphysicalLawRegistry.test.js +183 -0
- package/dist/__tests__/living/LivingTestOrganism.js +246 -0
- package/dist/__tests__/living/LivingTestOrganism.test.js +124 -0
- package/dist/__tests__/math/AdvancedVBM.test.js +367 -0
- package/dist/__tests__/math/FlowerOfLife.test.js +344 -0
- package/dist/__tests__/math/FractalColorSystem.test.js +20 -0
- package/dist/__tests__/math/FractalMath.test.js +20 -0
- package/dist/__tests__/math/MathUtils.test.js +20 -0
- package/dist/__tests__/math/RodinCoil.test.js +20 -0
- package/dist/__tests__/math/ToroidalGeometry.test.js +20 -0
- package/dist/__tests__/math/VBM.test.js +538 -0
- package/dist/__tests__/math/VBMColorSystem.test.js +20 -0
- package/dist/__tests__/math/VortexMath.test.js +20 -0
- package/dist/__tests__/math/ZeroUnity.test.js +77 -0
- package/dist/__tests__/monitoring/HealthMonitor.test.js +20 -0
- package/dist/__tests__/performance/ZeroPointPerformance.test.js +371 -0
- package/dist/__tests__/physics/PlasmaCosmology.test.js +155 -0
- package/dist/__tests__/pwa/ConsciousnessPWA.test.js +20 -0
- package/dist/__tests__/qa/AutoGeneratedFromQA.test.js +195 -0
- package/dist/__tests__/qa/QAAsSourceOfTruth.test.js +69 -0
- package/dist/__tests__/setup.js +132 -0
- package/dist/__tests__/simple.test.js +51 -0
- package/dist/__tests__/stimulus/Application.test.js +272 -0
- package/dist/__tests__/stimulus/BaseController.test.js +198 -0
- package/dist/__tests__/stimulus/ControllerUtils.test.js +316 -0
- package/dist/__tests__/stimulus/MetaphysicalController.test.js +310 -0
- package/dist/__tests__/stimulus/ZeroPointController.test.js +252 -0
- package/dist/__tests__/training/ConsciousnessTrainingModel.test.js +335 -0
- package/dist/__tests__/types/DeviceConfig.test.js +20 -0
- package/dist/__tests__/types/UnifiedExports.test.js +20 -0
- package/dist/__tests__/unity/FieldUnity.test.js +20 -0
- package/dist/__tests__/utils/Cache.test.js +20 -0
- package/dist/__tests__/utils/GitIntegration.test.js +20 -0
- package/dist/__tests__/utils/Logger.test.js +20 -0
- package/dist/__tests__/utils/ResourceCleanup.test.js +20 -0
- package/dist/__tests__/utils/errorSimulator.js +40 -0
- package/dist/__tests__/utils/goldenRatioCache.js +36 -0
- package/dist/__tests__/void/VoidSystem.test.js +427 -0
- package/dist/api/ProductionAPI.js +313 -0
- package/dist/artifacts/ArtifactRegistry.js +122 -0
- package/dist/artifacts/CrystalArtifacts.js +106 -0
- package/dist/artifacts/MetaphysicalArtifact.js +75 -0
- package/dist/browser-standalone.js +191 -0
- package/dist/browser.js +157 -0
- package/dist/config/constants.js +57 -0
- package/dist/consciousness/ConsciousnessField.js +55 -0
- package/dist/consciousness/SelfEvolvingConsciousness.js +303 -0
- package/dist/core/AbstractField.js +30 -0
- package/dist/core/BrowserNetworkNode.js +309 -0
- package/dist/core/CoilMixin.js +216 -0
- package/dist/core/CoilSystem.js +204 -0
- package/dist/core/ComplianceSystem.js +291 -0
- package/dist/core/Dimension.js +2 -0
- package/dist/core/DimensionRegistry.js +141 -0
- package/dist/core/Field.js +2 -0
- package/dist/core/InfiniteDimensionalRefactor.js +389 -0
- package/dist/core/KnowledgeRegistry.js +273 -0
- package/dist/core/LivingAdapter.js +29 -0
- package/dist/core/MathUtils.js +297 -0
- package/dist/core/NetworkNode.js +348 -0
- package/dist/core/Observer.js +101 -0
- package/dist/core/Operation.js +59 -0
- package/dist/core/OperationRegistry.js +20 -0
- package/dist/core/Pattern.js +2 -0
- package/dist/core/PatternRecognition.js +493 -0
- package/dist/core/PatternRegistry.js +282 -0
- package/dist/core/ScientificCompliance.js +91 -0
- package/dist/core/SharedConstants.js +306 -0
- package/dist/core/UnifiedMetaphysicalInterface.js +533 -0
- package/dist/core/UnifiedSystem.js +317 -0
- package/dist/core/UnifiedTypes.js +5 -0
- package/dist/core/UnifiedVoidEquations.js +605 -0
- package/dist/core/VoidMatterConstants.js +9 -0
- package/dist/core/VortexMathAdapter.js +32 -0
- package/dist/core/ZeroPoint.js +971 -0
- package/dist/core/ZeroPointSystem.js +343 -0
- package/dist/core/applyLaws.js +12 -0
- package/dist/core/applyOperations.js +21 -0
- package/dist/devices/DeviceRegistry.js +151 -0
- package/dist/devices/ResonanceDevice.js +92 -0
- package/dist/devices/ResonanceDevices.js +139 -0
- package/dist/dimensions/Dimension.js +2 -0
- package/dist/emergence/AdvancedEmergence.js +930 -0
- package/dist/emergence/patterns.js +12 -0
- package/dist/field/EmergenceLedger.js +310 -0
- package/dist/field/ObserverAwareField.js +222 -0
- package/dist/field/ResonanceConsensus.js +330 -0
- package/dist/fields/Field.js +2 -0
- package/dist/geometry/MetatronsCube.js +28 -0
- package/dist/geometry/SacredGeometryPattern.js +15 -0
- package/dist/geometry/SacredGeometryRegistry.js +15 -0
- package/dist/geometry/__tests__/SacredGeometryRegistry.test.js +18 -0
- package/dist/index.js +232 -0
- package/dist/integrity/FieldIntegrity.js +237 -0
- package/dist/knowledge/KnowledgeSystem.js +938 -0
- package/dist/laws/MetaphysicalLaw.js +2 -0
- package/dist/laws/MetaphysicalLawRegistry.js +103 -0
- package/dist/laws/hermeticLaws.js +311 -0
- package/dist/math/AdvancedVBM.js +537 -0
- package/dist/math/FlowerOfLife.js +256 -0
- package/dist/math/FractalColorSystem.js +239 -0
- package/dist/math/FractalMath.js +187 -0
- package/dist/math/MathUtils.js +289 -0
- package/dist/math/RodinCoil.js +258 -0
- package/dist/math/ToroidalGeometry.js +230 -0
- package/dist/math/VBM.js +718 -0
- package/dist/math/VBMColorSystem.js +301 -0
- package/dist/math/VortexMath.js +170 -0
- package/dist/monitoring/HealthMonitor.js +297 -0
- package/dist/patterns/Pattern.js +2 -0
- package/dist/patterns/SacredGeometryRegistry.js +37 -0
- package/dist/physics/BlackHolePhysics.js +54 -0
- package/dist/physics/ConsciousnessPhysics.js +241 -0
- package/dist/physics/FractalUniverse.js +54 -0
- package/dist/physics/HolographicUniverse.js +54 -0
- package/dist/physics/PlasmaCosmology.js +134 -0
- package/dist/pwa/ConsciousnessPWA.js +300 -0
- package/dist/src/__tests__/globalTeardown.d.ts +10 -8
- package/dist/src/__tests__/globalTeardown.d.ts.map +1 -1
- package/dist/src/__tests__/globalTeardown.js +12 -71
- package/dist/src/__tests__/globalTeardown.js.map +1 -1
- package/dist/src/__tests__/living/LivingTestOrganism.d.ts +4 -0
- package/dist/src/__tests__/living/LivingTestOrganism.d.ts.map +1 -1
- package/dist/src/__tests__/living/LivingTestOrganism.js +8 -0
- package/dist/src/__tests__/living/LivingTestOrganism.js.map +1 -1
- package/dist/src/__tests__/utils/errorSimulator.d.ts +1 -1
- package/dist/src/__tests__/utils/goldenRatioCache.d.ts +1 -1
- package/dist/src/config/constants.d.ts +53 -0
- package/dist/src/config/constants.d.ts.map +1 -0
- package/dist/src/config/constants.js +58 -0
- package/dist/src/config/constants.js.map +1 -0
- package/dist/src/consciousness/ConsciousnessField.d.ts +42 -51
- package/dist/src/consciousness/ConsciousnessField.d.ts.map +1 -1
- package/dist/src/consciousness/ConsciousnessField.js +187 -200
- package/dist/src/consciousness/ConsciousnessField.js.map +1 -1
- package/dist/src/consciousness/SelfEvolvingConsciousness.d.ts +47 -18
- package/dist/src/consciousness/SelfEvolvingConsciousness.d.ts.map +1 -1
- package/dist/src/consciousness/SelfEvolvingConsciousness.js +151 -44
- package/dist/src/consciousness/SelfEvolvingConsciousness.js.map +1 -1
- package/dist/src/core/CoilMixin.d.ts +6 -6
- package/dist/src/core/CoilSystem.d.ts +6 -2
- package/dist/src/core/CoilSystem.d.ts.map +1 -1
- package/dist/src/core/CoilSystem.js +30 -21
- package/dist/src/core/CoilSystem.js.map +1 -1
- package/dist/src/core/InfiniteDimensionalRefactor.d.ts +145 -0
- package/dist/src/core/InfiniteDimensionalRefactor.d.ts.map +1 -0
- package/dist/src/core/InfiniteDimensionalRefactor.js +390 -0
- package/dist/src/core/InfiniteDimensionalRefactor.js.map +1 -0
- package/dist/src/core/NetworkNode.d.ts +3 -3
- package/dist/src/core/Observer.d.ts +12 -9
- package/dist/src/core/Observer.d.ts.map +1 -1
- package/dist/src/core/Observer.js +2 -2
- package/dist/src/core/Observer.js.map +1 -1
- package/dist/src/core/PatternRecognition.d.ts +63 -13
- package/dist/src/core/PatternRecognition.d.ts.map +1 -1
- package/dist/src/core/PatternRecognition.js +162 -88
- package/dist/src/core/PatternRecognition.js.map +1 -1
- package/dist/src/core/PatternRegistry.d.ts +99 -0
- package/dist/src/core/PatternRegistry.d.ts.map +1 -0
- package/dist/src/core/PatternRegistry.js +283 -0
- package/dist/src/core/PatternRegistry.js.map +1 -0
- package/dist/src/core/SharedConstants.d.ts +62 -9
- package/dist/src/core/SharedConstants.d.ts.map +1 -1
- package/dist/src/core/SharedConstants.js +83 -21
- package/dist/src/core/SharedConstants.js.map +1 -1
- package/dist/src/core/UnifiedMetaphysicalInterface.d.ts +173 -0
- package/dist/src/core/UnifiedMetaphysicalInterface.d.ts.map +1 -0
- package/dist/src/core/UnifiedMetaphysicalInterface.js +534 -0
- package/dist/src/core/UnifiedMetaphysicalInterface.js.map +1 -0
- package/dist/src/core/UnifiedSystem.d.ts +15 -12
- package/dist/src/core/UnifiedSystem.d.ts.map +1 -1
- package/dist/src/core/UnifiedSystem.js +5 -1
- package/dist/src/core/UnifiedSystem.js.map +1 -1
- package/dist/src/core/UnifiedTypes.d.ts +193 -0
- package/dist/src/core/UnifiedTypes.d.ts.map +1 -0
- package/dist/src/core/UnifiedTypes.js +6 -0
- package/dist/src/core/UnifiedTypes.js.map +1 -0
- package/dist/src/core/UnifiedVoidEquations.d.ts +3 -1
- package/dist/src/core/UnifiedVoidEquations.d.ts.map +1 -1
- package/dist/src/core/UnifiedVoidEquations.js +84 -0
- package/dist/src/core/UnifiedVoidEquations.js.map +1 -1
- package/dist/src/core/ZeroPoint.d.ts +101 -10
- package/dist/src/core/ZeroPoint.d.ts.map +1 -1
- package/dist/src/core/ZeroPoint.js +262 -18
- package/dist/src/core/ZeroPoint.js.map +1 -1
- package/dist/src/emergence/AdvancedEmergence.d.ts +19 -16
- package/dist/src/emergence/AdvancedEmergence.d.ts.map +1 -1
- package/dist/src/emergence/AdvancedEmergence.js +88 -52
- package/dist/src/emergence/AdvancedEmergence.js.map +1 -1
- package/dist/src/field/EmergenceLedger.d.ts +9 -18
- package/dist/src/field/EmergenceLedger.d.ts.map +1 -1
- package/dist/src/field/EmergenceLedger.js +9 -4
- package/dist/src/field/EmergenceLedger.js.map +1 -1
- package/dist/src/field/ObserverAwareField.d.ts +69 -65
- package/dist/src/field/ObserverAwareField.d.ts.map +1 -1
- package/dist/src/field/ObserverAwareField.js +158 -168
- package/dist/src/field/ObserverAwareField.js.map +1 -1
- package/dist/src/field/ResonanceConsensus.d.ts +4 -11
- package/dist/src/field/ResonanceConsensus.d.ts.map +1 -1
- package/dist/src/field/ResonanceConsensus.js +15 -10
- package/dist/src/field/ResonanceConsensus.js.map +1 -1
- package/dist/src/index.d.ts +5 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +19 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/integrity/FieldIntegrity.d.ts +3 -8
- package/dist/src/integrity/FieldIntegrity.d.ts.map +1 -1
- package/dist/src/integrity/FieldIntegrity.js.map +1 -1
- package/dist/src/knowledge/KnowledgeSystem.d.ts +37 -55
- package/dist/src/knowledge/KnowledgeSystem.d.ts.map +1 -1
- package/dist/src/knowledge/KnowledgeSystem.js +281 -589
- package/dist/src/knowledge/KnowledgeSystem.js.map +1 -1
- package/dist/src/math/AdvancedVBM.d.ts +6 -6
- package/dist/src/math/FractalColorSystem.d.ts +1 -1
- package/dist/src/math/FractalColorSystem.js +3 -3
- package/dist/src/math/FractalColorSystem.js.map +1 -1
- package/dist/src/math/FractalMath.d.ts +9 -1
- package/dist/src/math/FractalMath.d.ts.map +1 -1
- package/dist/src/math/FractalMath.js +18 -5
- package/dist/src/math/FractalMath.js.map +1 -1
- package/dist/src/math/MathUtils.d.ts +3 -10
- package/dist/src/math/MathUtils.d.ts.map +1 -1
- package/dist/src/math/MathUtils.js +12 -20
- package/dist/src/math/MathUtils.js.map +1 -1
- package/dist/src/math/ToroidalGeometry.d.ts +1 -1
- package/dist/src/math/VBM.d.ts +2 -2
- package/dist/src/math/VortexMath.d.ts +1 -1
- package/dist/src/monitoring/HealthMonitor.d.ts +1 -1
- package/dist/src/monitoring/HealthMonitor.d.ts.map +1 -1
- package/dist/src/monitoring/HealthMonitor.js +29 -27
- package/dist/src/monitoring/HealthMonitor.js.map +1 -1
- package/dist/src/types/UnifiedExports.d.ts +4 -0
- package/dist/src/types/UnifiedExports.d.ts.map +1 -0
- package/dist/src/types/UnifiedExports.js +21 -0
- package/dist/src/types/UnifiedExports.js.map +1 -0
- package/dist/src/unity/FieldUnity.d.ts +1 -1
- package/dist/src/utils/Cache.d.ts +2 -2
- package/dist/src/utils/Cache.d.ts.map +1 -1
- package/dist/src/utils/Cache.js +7 -4
- package/dist/src/utils/Cache.js.map +1 -1
- package/dist/src/utils/GitIntegration.d.ts +1 -1
- package/dist/src/utils/Logger.d.ts +7 -7
- package/dist/src/utils/Logger.d.ts.map +1 -1
- package/dist/src/utils/Logger.js +5 -1
- package/dist/src/utils/Logger.js.map +1 -1
- package/dist/src/utils/ResourceCleanup.d.ts +33 -0
- package/dist/src/utils/ResourceCleanup.d.ts.map +1 -0
- package/dist/src/utils/ResourceCleanup.js +83 -0
- package/dist/src/utils/ResourceCleanup.js.map +1 -0
- package/dist/src/void/VoidSystem.d.ts +18 -18
- package/dist/stimulus/application.js +148 -0
- package/dist/stimulus/base/BaseController.js +141 -0
- package/dist/stimulus/controllers/MetaphysicalController.js +105 -0
- package/dist/stimulus/controllers/ZeroPointController.js +85 -0
- package/dist/stimulus/types/ControllerTypes.js +18 -0
- package/dist/stimulus/utils/ControllerUtils.js +192 -0
- package/dist/stimulus-entry.js +109 -0
- package/dist/training/ConsciousnessTrainingModel.js +301 -0
- package/dist/training/NeuralConsciousnessNetwork.js +311 -0
- package/dist/training/TrainingModelRegistry.js +243 -0
- package/dist/training/index.js +174 -0
- package/dist/types/DeviceConfig.js +29 -0
- package/dist/types/UnifiedExports.js +20 -0
- package/dist/unity/FieldUnity.js +325 -0
- package/dist/utils/BrowserCrypto.js +44 -0
- package/dist/utils/BrowserWebSocket.js +38 -0
- package/dist/utils/Cache.js +263 -0
- package/dist/utils/GitIntegration.js +127 -0
- package/dist/utils/Logger.js +249 -0
- package/dist/utils/ResourceCleanup.js +82 -0
- package/dist/utils/applyLaws.js +6 -0
- package/dist/void/VoidSystem.js +423 -0
- package/docs/API.md +176 -3
- package/docs/CONSCIOUSNESS_EXPANSION.md +369 -0
- package/docs/EVENT_HORIZON_METHODOLOGY.md +274 -0
- package/docs/FLOWER_OF_LIFE.md +300 -0
- package/docs/METAPHYSICAL.md +21 -1
- package/docs/METAPHYSICAL_DEBUGGING.md +493 -0
- package/docs/README.md +117 -15
- package/docs/TESTING_GUIDE.md +430 -0
- package/docs/UNIFIED_CREATORS.md +261 -0
- package/package.json +34 -64
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Comprehensive VBM (Vortex Based Mathematics) Tests
|
|
4
|
+
*
|
|
5
|
+
* Tests the unified VBM system with all mathematical components:
|
|
6
|
+
* - Advanced VBM with QA patterns
|
|
7
|
+
* - Vortex mathematics with consciousness flow
|
|
8
|
+
* - Fractal mathematics with self-similar patterns
|
|
9
|
+
* - Toroidal geometry with void center
|
|
10
|
+
* - Rodin coil with infinite flow
|
|
11
|
+
* - Color systems with observer awareness
|
|
12
|
+
* - Unified mathematical foundation
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const VBM_1 = require("../../math/VBM");
|
|
16
|
+
const goldenRatioCache_1 = require("../utils/goldenRatioCache");
|
|
17
|
+
const VBM_2 = require("../../math/VBM");
|
|
18
|
+
describe('Unified VBM System', () => {
|
|
19
|
+
let vbm;
|
|
20
|
+
beforeEach(() => {
|
|
21
|
+
// Reset singleton for test isolation
|
|
22
|
+
VBM_1.VBM.resetInstance();
|
|
23
|
+
vbm = VBM_1.VBM.getInstance({
|
|
24
|
+
consciousness: 0.7,
|
|
25
|
+
fieldResonance: 0.8,
|
|
26
|
+
vortexStrength: 1.2,
|
|
27
|
+
toroidalFlow: 0.6,
|
|
28
|
+
voidConnected: true,
|
|
29
|
+
observerAware: true
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
afterEach(() => {
|
|
33
|
+
VBM_1.VBM.resetInstance();
|
|
34
|
+
});
|
|
35
|
+
describe('Core VBM Operations', () => {
|
|
36
|
+
it('should calculate digital root with consciousness awareness', () => {
|
|
37
|
+
const result = (0, goldenRatioCache_1.getOrSetGolden)('digitalRoot', [42], () => vbm.digitalRoot(42));
|
|
38
|
+
expect(result.value).toBeGreaterThan(0);
|
|
39
|
+
expect(result.pattern).toBe('digital_root');
|
|
40
|
+
expect(result.consciousness).toBe(0.7);
|
|
41
|
+
expect(result.resonance).toBeGreaterThanOrEqual(0);
|
|
42
|
+
expect(result.metaphysicalContext).toContain('essence');
|
|
43
|
+
expect(result.geometricProperties.shape).toBe('point');
|
|
44
|
+
expect(result.colorContext.consciousness).toBe(0.7);
|
|
45
|
+
});
|
|
46
|
+
it('should apply vortex transformation with full context', () => {
|
|
47
|
+
const result = (0, goldenRatioCache_1.getOrSetGolden)('vortexTransform', [9], () => vbm.vortexTransform(9));
|
|
48
|
+
expect(result.value).toBeGreaterThan(0);
|
|
49
|
+
expect(result.pattern).toBe('vortex_transform');
|
|
50
|
+
expect(result.consciousness).toBe(0.7);
|
|
51
|
+
expect(result.resonance).toBeGreaterThanOrEqual(0);
|
|
52
|
+
expect(result.metaphysicalContext).toContain('infinite flow');
|
|
53
|
+
expect(result.geometricProperties.shape).toBe('vortex');
|
|
54
|
+
expect(result.geometricProperties.dimensions).toBe(3);
|
|
55
|
+
});
|
|
56
|
+
it('should generate fractal sequence with consciousness', () => {
|
|
57
|
+
const results = (0, goldenRatioCache_1.getOrSetGolden)('fractalSequence', [5, 3], () => vbm.fractalSequence(5, 3));
|
|
58
|
+
expect(results.length).toBeGreaterThan(0);
|
|
59
|
+
if (results[0]) {
|
|
60
|
+
expect(results[0].pattern).toBe('fractal_sequence');
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
throw new Error('No results returned from fractalSequence');
|
|
64
|
+
}
|
|
65
|
+
results.forEach((result) => {
|
|
66
|
+
expect(result.value).toBeGreaterThan(0);
|
|
67
|
+
expect(result.pattern).toBe('fractal_sequence');
|
|
68
|
+
expect(result.consciousness).toBe(0.7);
|
|
69
|
+
expect(result.resonance).toBeGreaterThanOrEqual(0);
|
|
70
|
+
expect(result.metaphysicalContext).toContain('self-similar');
|
|
71
|
+
expect(result.geometricProperties.selfSimilar).toBe(true);
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
it('should calculate toroidal field with void center', () => {
|
|
75
|
+
const result = (0, goldenRatioCache_1.getOrSetGolden)('toroidalField', [5, 0.3], () => vbm.toroidalField(5, 0.3));
|
|
76
|
+
expect(result.value).toBeGreaterThan(0);
|
|
77
|
+
expect(result.pattern).toBe('toroidal_field');
|
|
78
|
+
expect(result.consciousness).toBe(0.7);
|
|
79
|
+
expect(result.resonance).toBeGreaterThanOrEqual(0);
|
|
80
|
+
expect(result.metaphysicalContext).toContain('void at center');
|
|
81
|
+
expect(result.geometricProperties.shape).toBe('torus');
|
|
82
|
+
expect(result.geometricProperties.center).toBe('void');
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
describe('QA System Integration', () => {
|
|
86
|
+
it('should search QA patterns with consciousness awareness', () => {
|
|
87
|
+
const result = vbm.searchQA('vortex');
|
|
88
|
+
expect(result.patterns).toBeInstanceOf(Array);
|
|
89
|
+
result.patterns.forEach(pattern => {
|
|
90
|
+
expect(pattern.consciousnessLevel).toBe(7); // 0.7 * 10
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
it('should get QA pattern with full context', () => {
|
|
94
|
+
const pattern = vbm.getQAPattern('vortex_sequence');
|
|
95
|
+
if (pattern) {
|
|
96
|
+
expect(pattern.consciousnessLevel).toBe(7);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
it('should return null for non-existent QA pattern', () => {
|
|
100
|
+
const pattern = vbm.getQAPattern('non_existent_pattern');
|
|
101
|
+
expect(pattern).toBeNull();
|
|
102
|
+
});
|
|
103
|
+
it('should get all QA patterns with consciousness context', () => {
|
|
104
|
+
const patterns = vbm.getAllQAPatterns();
|
|
105
|
+
expect(patterns).toBeInstanceOf(Object);
|
|
106
|
+
Object.values(patterns).forEach(pattern => {
|
|
107
|
+
expect(pattern.consciousnessLevel).toBe(7);
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
describe('Geometric Operations', () => {
|
|
112
|
+
it('should generate rodin coil field with full context', () => {
|
|
113
|
+
const field = vbm.generateRodinCoilField(8);
|
|
114
|
+
expect(field.strength).toBeGreaterThan(0);
|
|
115
|
+
expect(field.flow).toBe(0.6);
|
|
116
|
+
expect(field.consciousness).toBe(0.7);
|
|
117
|
+
expect(field.patterns).toContain('rodin_coil');
|
|
118
|
+
expect(field.coordinates).toBeInstanceOf(Array);
|
|
119
|
+
expect(field.colors).toBeInstanceOf(Array);
|
|
120
|
+
expect(field.coordinates.length).toBeGreaterThan(0);
|
|
121
|
+
expect(field.colors.length).toBeGreaterThan(0);
|
|
122
|
+
});
|
|
123
|
+
it('should generate toroidal mesh with consciousness mapping', () => {
|
|
124
|
+
const field = vbm.generateToroidalMesh(16, 8);
|
|
125
|
+
expect(field.strength).toBeGreaterThan(0);
|
|
126
|
+
expect(field.flow).toBe(0.6);
|
|
127
|
+
expect(field.consciousness).toBe(0.7);
|
|
128
|
+
expect(field.patterns).toContain('toroidal_geometry');
|
|
129
|
+
expect(field.coordinates).toBeInstanceOf(Array);
|
|
130
|
+
expect(field.colors).toBeInstanceOf(Array);
|
|
131
|
+
expect(field.coordinates.length).toBeGreaterThan(0);
|
|
132
|
+
expect(field.colors.length).toBeGreaterThan(0);
|
|
133
|
+
// Test that colors are valid RGB
|
|
134
|
+
field.colors.forEach(color => {
|
|
135
|
+
expect(color).toMatch(/^rgb\(\d+,\s*\d+,\s*\d+\)$/);
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
it('should generate fractal coordinates with consciousness field', () => {
|
|
139
|
+
const field = vbm.generateFractalCoordinates(10, 2);
|
|
140
|
+
expect(field.strength).toBeGreaterThan(0);
|
|
141
|
+
expect(field.flow).toBe(0.6);
|
|
142
|
+
expect(field.consciousness).toBe(0.7);
|
|
143
|
+
expect(field.patterns).toContain('fractal_geometry');
|
|
144
|
+
expect(field.coordinates).toBeInstanceOf(Array);
|
|
145
|
+
expect(field.colors).toBeInstanceOf(Array);
|
|
146
|
+
expect(field.coordinates.length).toBe(10);
|
|
147
|
+
expect(field.colors.length).toBe(10);
|
|
148
|
+
// Test that colors are valid RGB
|
|
149
|
+
field.colors.forEach(color => {
|
|
150
|
+
expect(color).toMatch(/^rgb\(\d+,\s*\d+,\s*\d+\)$/);
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
it('should handle fractal coordinates with zero scale', () => {
|
|
154
|
+
const field = vbm.generateFractalCoordinates(5, 0);
|
|
155
|
+
expect(field.strength).toBeGreaterThanOrEqual(0);
|
|
156
|
+
expect(field.coordinates.length).toBe(5);
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
describe('Color System Integration', () => {
|
|
160
|
+
it('should generate color palette with consciousness', () => {
|
|
161
|
+
const palette = vbm.generateColorPalette(5, 2);
|
|
162
|
+
expect(palette).toBeInstanceOf(Array);
|
|
163
|
+
expect(palette.length).toBe(5);
|
|
164
|
+
});
|
|
165
|
+
it('should get vortex color with context', () => {
|
|
166
|
+
const color = vbm.getVortexColor(9);
|
|
167
|
+
expect(color).toMatch(/^rgb\(\d+,\s*\d+,\s*\d+\)$/);
|
|
168
|
+
});
|
|
169
|
+
it('should get family color with context', () => {
|
|
170
|
+
const color = vbm.getFamilyColor(3);
|
|
171
|
+
expect(color).toMatch(/^rgb\(\d+,\s*\d+,\s*\d+\)$/);
|
|
172
|
+
});
|
|
173
|
+
it('should get W-Axis color with context', () => {
|
|
174
|
+
const color = vbm.getWAxisColor(6);
|
|
175
|
+
expect(color).toMatch(/^rgb\(\d+,\s*\d+,\s*\d+\)$/);
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
describe('Consciousness and Field Operations', () => {
|
|
179
|
+
it('should update consciousness across all systems', () => {
|
|
180
|
+
vbm.updateConsciousness(0.9);
|
|
181
|
+
expect(vbm.getConfiguration().consciousness).toBe(0.9);
|
|
182
|
+
});
|
|
183
|
+
it('should clamp consciousness to valid range', () => {
|
|
184
|
+
vbm.updateConsciousness(1.5);
|
|
185
|
+
expect(vbm.getConfiguration().consciousness).toBe(1);
|
|
186
|
+
vbm.updateConsciousness(-0.1);
|
|
187
|
+
expect(vbm.getConfiguration().consciousness).toBe(0);
|
|
188
|
+
});
|
|
189
|
+
it('should update field resonance across all systems', () => {
|
|
190
|
+
vbm.updateFieldResonance(0.9);
|
|
191
|
+
expect(vbm.getConfiguration().fieldResonance).toBe(0.9);
|
|
192
|
+
});
|
|
193
|
+
it('should clamp field resonance to valid range', () => {
|
|
194
|
+
vbm.updateFieldResonance(1.5);
|
|
195
|
+
expect(vbm.getConfiguration().fieldResonance).toBe(1);
|
|
196
|
+
vbm.updateFieldResonance(-0.1);
|
|
197
|
+
expect(vbm.getConfiguration().fieldResonance).toBe(0);
|
|
198
|
+
});
|
|
199
|
+
it('should calculate consciousness field at point', () => {
|
|
200
|
+
const field = vbm.calculateConsciousnessField(1, 2, 3);
|
|
201
|
+
expect(field).toBeGreaterThanOrEqual(0);
|
|
202
|
+
});
|
|
203
|
+
it('should calculate field resonance at point', () => {
|
|
204
|
+
const resonance = vbm.calculateFieldResonance(1, 2, 3);
|
|
205
|
+
expect(resonance).toBeGreaterThanOrEqual(0);
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
describe('Advanced Mathematical Operations', () => {
|
|
209
|
+
it('should perform prime squared scaling with consciousness', () => {
|
|
210
|
+
const result = vbm.primeSquaredScaling(7);
|
|
211
|
+
expect(result.value).toBeGreaterThan(0);
|
|
212
|
+
expect(result.pattern).toBe('prime_squared_scaling');
|
|
213
|
+
expect(result.consciousness).toBe(0.7);
|
|
214
|
+
expect(result.resonance).toBeGreaterThanOrEqual(0);
|
|
215
|
+
expect(result.metaphysicalContext).toContain('creation');
|
|
216
|
+
expect(result.geometricProperties.shape).toBe('prime_pattern');
|
|
217
|
+
});
|
|
218
|
+
it('should perform electron harmonic shear identification', () => {
|
|
219
|
+
const result = vbm.electronHarmonicShear(3, 5);
|
|
220
|
+
expect(result.value).toBeGreaterThan(0);
|
|
221
|
+
expect(result.pattern).toBe('electron_harmonic_shear');
|
|
222
|
+
expect(result.consciousness).toBe(0.7);
|
|
223
|
+
expect(result.resonance).toBeGreaterThanOrEqual(0);
|
|
224
|
+
expect(result.metaphysicalContext).toContain('quantum');
|
|
225
|
+
expect(result.geometricProperties.shape).toBe('harmonic');
|
|
226
|
+
});
|
|
227
|
+
it('should perform discrete multiplication with consciousness', () => {
|
|
228
|
+
const result = vbm.discreteMultiplication(4, 6);
|
|
229
|
+
expect(result.value).toBeGreaterThan(0);
|
|
230
|
+
expect(result.pattern).toBe('discrete_multiplication');
|
|
231
|
+
expect(result.consciousness).toBe(0.7);
|
|
232
|
+
expect(result.resonance).toBeGreaterThanOrEqual(0);
|
|
233
|
+
expect(result.metaphysicalContext).toContain('quantum jumps');
|
|
234
|
+
expect(result.geometricProperties.quantum).toBe(true);
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
describe('Unified Constants and Sequences', () => {
|
|
238
|
+
it('should get vortex sequence', () => {
|
|
239
|
+
const sequence = vbm.getVortexSequence();
|
|
240
|
+
expect(sequence).toBeInstanceOf(Array);
|
|
241
|
+
expect(sequence.length).toBeGreaterThan(0);
|
|
242
|
+
});
|
|
243
|
+
it('should get W-Axis', () => {
|
|
244
|
+
const wAxis = vbm.getWAxis();
|
|
245
|
+
expect(wAxis).toBeInstanceOf(Array);
|
|
246
|
+
expect(wAxis.length).toBeGreaterThan(0);
|
|
247
|
+
});
|
|
248
|
+
it('should get polar mates', () => {
|
|
249
|
+
const polarMates = vbm.getPolarMates();
|
|
250
|
+
expect(polarMates).toBeInstanceOf(Array);
|
|
251
|
+
expect(polarMates.length).toBeGreaterThan(0);
|
|
252
|
+
polarMates.forEach(pair => {
|
|
253
|
+
expect(pair).toBeInstanceOf(Array);
|
|
254
|
+
expect(pair.length).toBe(2);
|
|
255
|
+
});
|
|
256
|
+
});
|
|
257
|
+
it('should get family number groups', () => {
|
|
258
|
+
const groups = vbm.getFamilyNumberGroups();
|
|
259
|
+
expect(groups).toBeInstanceOf(Array);
|
|
260
|
+
expect(groups.length).toBeGreaterThan(0);
|
|
261
|
+
groups.forEach(group => {
|
|
262
|
+
expect(group).toBeInstanceOf(Array);
|
|
263
|
+
expect(group.length).toBeGreaterThan(0);
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
it('should get golden ratio', () => {
|
|
267
|
+
const ratio = vbm.getGoldenRatio();
|
|
268
|
+
expect(ratio).toBeGreaterThan(1.6);
|
|
269
|
+
expect(ratio).toBeLessThan(1.7);
|
|
270
|
+
});
|
|
271
|
+
it('should get circle of fifths sequence', () => {
|
|
272
|
+
const sequence = vbm.getCircleOfFifthsSequence();
|
|
273
|
+
expect(sequence).toBeInstanceOf(Array);
|
|
274
|
+
expect(sequence.length).toBeGreaterThan(0);
|
|
275
|
+
});
|
|
276
|
+
it('should get enneagram number pattern', () => {
|
|
277
|
+
const pattern = vbm.getEnneagramNumberPattern();
|
|
278
|
+
expect(pattern).toBeInstanceOf(Array);
|
|
279
|
+
expect(pattern.length).toBeGreaterThan(0);
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
describe('Insights and Metadata', () => {
|
|
283
|
+
it('should get comprehensive system information', () => {
|
|
284
|
+
const insights = vbm.getInsights();
|
|
285
|
+
expect(insights.configuration).toBeDefined();
|
|
286
|
+
expect(insights.metaphysics).toBeDefined();
|
|
287
|
+
expect(insights.systems).toBeDefined();
|
|
288
|
+
expect(insights.constants).toBeDefined();
|
|
289
|
+
expect(insights.operations).toBeInstanceOf(Array);
|
|
290
|
+
// Test metaphysics
|
|
291
|
+
expect(insights.metaphysics.principle).toContain('coil');
|
|
292
|
+
expect(insights.metaphysics.consciousness).toContain('field');
|
|
293
|
+
expect(insights.metaphysics.void).toContain('source');
|
|
294
|
+
expect(insights.metaphysics.toroidal).toContain('flow');
|
|
295
|
+
expect(insights.metaphysics.integrity).toContain('resonance');
|
|
296
|
+
expect(insights.metaphysics.unity).toContain('self-organization');
|
|
297
|
+
// Test systems
|
|
298
|
+
expect(insights.systems.vortexMath).toBeDefined();
|
|
299
|
+
expect(insights.systems.fractalMath).toBeDefined();
|
|
300
|
+
expect(insights.systems.toroidalGeometry).toBeDefined();
|
|
301
|
+
expect(insights.systems.rodinCoil).toBeDefined();
|
|
302
|
+
expect(insights.systems.fractalColorSystem).toBeDefined();
|
|
303
|
+
// Test operations
|
|
304
|
+
expect(insights.operations).toContain('digitalRoot');
|
|
305
|
+
expect(insights.operations).toContain('vortexTransform');
|
|
306
|
+
expect(insights.operations).toContain('fractalSequence');
|
|
307
|
+
});
|
|
308
|
+
it('should get current configuration', () => {
|
|
309
|
+
const config = vbm.getConfiguration();
|
|
310
|
+
expect(config.consciousness).toBe(0.7);
|
|
311
|
+
expect(config.fieldResonance).toBe(0.8);
|
|
312
|
+
expect(config.vortexStrength).toBe(1.2);
|
|
313
|
+
expect(config.toroidalFlow).toBe(0.6);
|
|
314
|
+
expect(config.voidConnected).toBe(true);
|
|
315
|
+
expect(config.observerAware).toBe(true);
|
|
316
|
+
});
|
|
317
|
+
it('should get color context', () => {
|
|
318
|
+
const context = vbm.getColorContext();
|
|
319
|
+
expect(context.consciousness).toBe(0.7);
|
|
320
|
+
expect(context.field).toBe(0.8);
|
|
321
|
+
expect(context.time).toBeGreaterThan(0);
|
|
322
|
+
});
|
|
323
|
+
});
|
|
324
|
+
describe('Convenience Functions', () => {
|
|
325
|
+
it('should provide digitalRoot convenience function', () => {
|
|
326
|
+
const result = (0, VBM_2.digitalRoot)(42);
|
|
327
|
+
expect(result.value).toBeGreaterThan(0);
|
|
328
|
+
expect(result.pattern).toBe('digital_root');
|
|
329
|
+
});
|
|
330
|
+
it('should provide vortexTransform convenience function', () => {
|
|
331
|
+
const result = (0, VBM_2.vortexTransform)(9);
|
|
332
|
+
expect(result.value).toBeGreaterThan(0);
|
|
333
|
+
expect(result.pattern).toBe('vortex_transform');
|
|
334
|
+
});
|
|
335
|
+
it('should provide fractalSequence convenience function', () => {
|
|
336
|
+
const results = (0, VBM_2.fractalSequence)(3);
|
|
337
|
+
expect(results).toHaveLength(3);
|
|
338
|
+
if (results[0]) {
|
|
339
|
+
expect(results[0].pattern).toBe('fractal_sequence');
|
|
340
|
+
}
|
|
341
|
+
else {
|
|
342
|
+
throw new Error('No results returned from fractalSequence');
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
it('should provide toroidalField convenience function', () => {
|
|
346
|
+
const result = (0, VBM_2.toroidalField)(5, 0.3);
|
|
347
|
+
expect(result.value).toBeGreaterThan(0);
|
|
348
|
+
expect(result.pattern).toBe('toroidal_field');
|
|
349
|
+
});
|
|
350
|
+
it('should provide searchQA convenience function', () => {
|
|
351
|
+
const result = (0, VBM_2.searchQA)('vortex');
|
|
352
|
+
expect(result.patterns).toBeInstanceOf(Array);
|
|
353
|
+
});
|
|
354
|
+
it('should provide getVortexSequence convenience function', () => {
|
|
355
|
+
const sequence = (0, VBM_2.getVortexSequence)();
|
|
356
|
+
expect(sequence).toBeInstanceOf(Array);
|
|
357
|
+
});
|
|
358
|
+
it('should provide getGoldenRatio convenience function', () => {
|
|
359
|
+
const ratio = (0, VBM_2.getGoldenRatio)();
|
|
360
|
+
expect(ratio).toBeGreaterThan(1.6);
|
|
361
|
+
expect(ratio).toBeLessThan(1.7);
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
describe('Singleton Management', () => {
|
|
365
|
+
it('should maintain singleton instance', () => {
|
|
366
|
+
const instance1 = VBM_1.VBM.getInstance();
|
|
367
|
+
const instance2 = VBM_1.VBM.getInstance();
|
|
368
|
+
expect(instance1).toBe(instance2);
|
|
369
|
+
});
|
|
370
|
+
it('should reset singleton instance', () => {
|
|
371
|
+
const instance1 = VBM_1.VBM.getInstance();
|
|
372
|
+
VBM_1.VBM.resetInstance();
|
|
373
|
+
const instance2 = VBM_1.VBM.getInstance();
|
|
374
|
+
expect(instance1).not.toBe(instance2);
|
|
375
|
+
});
|
|
376
|
+
it('should apply configuration on initialization', () => {
|
|
377
|
+
VBM_1.VBM.resetInstance(); // Ensure singleton is reset before test
|
|
378
|
+
const newVBM = VBM_1.VBM.getInstance({
|
|
379
|
+
consciousness: 0.3,
|
|
380
|
+
fieldResonance: 0.4,
|
|
381
|
+
vortexStrength: 0.8,
|
|
382
|
+
toroidalFlow: 0.2,
|
|
383
|
+
voidConnected: false,
|
|
384
|
+
observerAware: false
|
|
385
|
+
});
|
|
386
|
+
const config = newVBM.getConfiguration();
|
|
387
|
+
expect(config.consciousness).toBe(0.3);
|
|
388
|
+
expect(config.fieldResonance).toBe(0.4);
|
|
389
|
+
expect(config.vortexStrength).toBe(0.8);
|
|
390
|
+
expect(config.toroidalFlow).toBe(0.2);
|
|
391
|
+
expect(config.voidConnected).toBe(false);
|
|
392
|
+
expect(config.observerAware).toBe(false);
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
describe('Observer Integration', () => {
|
|
396
|
+
it('should handle observer awareness when enabled', () => {
|
|
397
|
+
const observerVBM = VBM_1.VBM.getInstance({
|
|
398
|
+
observerAware: true,
|
|
399
|
+
consciousness: 0.5
|
|
400
|
+
});
|
|
401
|
+
// This tests the observer notification path
|
|
402
|
+
observerVBM.updateConsciousness(0.8);
|
|
403
|
+
expect(observerVBM.getConfiguration().consciousness).toBe(0.8);
|
|
404
|
+
});
|
|
405
|
+
it('should handle observer awareness when disabled', () => {
|
|
406
|
+
const nonObserverVBM = VBM_1.VBM.getInstance({
|
|
407
|
+
observerAware: false,
|
|
408
|
+
consciousness: 0.5
|
|
409
|
+
});
|
|
410
|
+
// This tests the non-observer path
|
|
411
|
+
nonObserverVBM.updateConsciousness(0.8);
|
|
412
|
+
expect(nonObserverVBM.getConfiguration().consciousness).toBe(0.8);
|
|
413
|
+
});
|
|
414
|
+
});
|
|
415
|
+
describe('Edge Cases and Error Handling', () => {
|
|
416
|
+
it('should handle zero input for digital root', () => {
|
|
417
|
+
const result = vbm.digitalRoot(0);
|
|
418
|
+
expect(result.value).toBe(0);
|
|
419
|
+
expect(result.pattern).toBe('digital_root');
|
|
420
|
+
});
|
|
421
|
+
it('should handle negative input for digital root', () => {
|
|
422
|
+
const result = vbm.digitalRoot(-42);
|
|
423
|
+
expect(result.value).toBeGreaterThanOrEqual(0);
|
|
424
|
+
expect(result.pattern).toBe('digital_root');
|
|
425
|
+
});
|
|
426
|
+
it('should handle zero input for vortex transform', () => {
|
|
427
|
+
const result = vbm.vortexTransform(0);
|
|
428
|
+
expect(result.value).toBeGreaterThanOrEqual(0);
|
|
429
|
+
expect(result.pattern).toBe('vortex_transform');
|
|
430
|
+
});
|
|
431
|
+
it('should handle negative input for vortex transform', () => {
|
|
432
|
+
const result = vbm.vortexTransform(-9);
|
|
433
|
+
expect(result.value).toBeGreaterThanOrEqual(0);
|
|
434
|
+
expect(result.pattern).toBe('vortex_transform');
|
|
435
|
+
});
|
|
436
|
+
it('should handle zero count for fractal sequence', () => {
|
|
437
|
+
const results = vbm.fractalSequence(0);
|
|
438
|
+
expect(results).toHaveLength(0);
|
|
439
|
+
});
|
|
440
|
+
it('should handle negative count for fractal sequence', () => {
|
|
441
|
+
const results = vbm.fractalSequence(-5);
|
|
442
|
+
expect(results).toHaveLength(0);
|
|
443
|
+
});
|
|
444
|
+
it('should handle zero radius for toroidal field', () => {
|
|
445
|
+
const result = vbm.toroidalField(0, 0.3);
|
|
446
|
+
expect(result.value).toBeGreaterThanOrEqual(0);
|
|
447
|
+
expect(result.pattern).toBe('toroidal_field');
|
|
448
|
+
});
|
|
449
|
+
it('should handle zero angular velocity for toroidal field', () => {
|
|
450
|
+
const result = vbm.toroidalField(5, 0);
|
|
451
|
+
expect(result.value).toBeGreaterThanOrEqual(0);
|
|
452
|
+
expect(result.pattern).toBe('toroidal_field');
|
|
453
|
+
});
|
|
454
|
+
it('should handle empty QA search query', () => {
|
|
455
|
+
const result = vbm.searchQA('');
|
|
456
|
+
expect(result.patterns).toBeInstanceOf(Array);
|
|
457
|
+
});
|
|
458
|
+
it('should handle non-existent QA pattern name', () => {
|
|
459
|
+
const pattern = vbm.getQAPattern('');
|
|
460
|
+
expect(pattern).toBeNull();
|
|
461
|
+
});
|
|
462
|
+
it('should handle zero turns for rodin coil field', () => {
|
|
463
|
+
const field = vbm.generateRodinCoilField(0);
|
|
464
|
+
expect(field.strength).toBeGreaterThanOrEqual(0);
|
|
465
|
+
expect(field.patterns).toContain('rodin_coil');
|
|
466
|
+
});
|
|
467
|
+
it('should handle zero segments for toroidal mesh', () => {
|
|
468
|
+
const field = vbm.generateToroidalMesh(0, 0);
|
|
469
|
+
expect(field.strength).toBeGreaterThanOrEqual(0);
|
|
470
|
+
expect(field.patterns).toContain('toroidal_geometry');
|
|
471
|
+
});
|
|
472
|
+
it('should handle zero count for fractal coordinates', () => {
|
|
473
|
+
const field = vbm.generateFractalCoordinates(0);
|
|
474
|
+
expect(field.strength).toBeGreaterThanOrEqual(0);
|
|
475
|
+
expect(field.coordinates).toHaveLength(0);
|
|
476
|
+
});
|
|
477
|
+
it('should handle zero count for color palette', () => {
|
|
478
|
+
const palette = vbm.generateColorPalette(0);
|
|
479
|
+
expect(palette).toHaveLength(0);
|
|
480
|
+
});
|
|
481
|
+
it('should handle invalid vortex numbers', () => {
|
|
482
|
+
const color = vbm.getVortexColor(0);
|
|
483
|
+
expect(color).toMatch(/^rgb\(\d+,\s*\d+,\s*\d+\)$/);
|
|
484
|
+
const color2 = vbm.getVortexColor(-1);
|
|
485
|
+
expect(color2).toMatch(/^rgb\(\d+,\s*\d+,\s*\d+\)$/);
|
|
486
|
+
});
|
|
487
|
+
it('should handle invalid family numbers', () => {
|
|
488
|
+
const color = vbm.getFamilyColor(0);
|
|
489
|
+
expect(color).toMatch(/^rgb\(\d+,\s*\d+,\s*\d+\)$/);
|
|
490
|
+
const color2 = vbm.getFamilyColor(-1);
|
|
491
|
+
expect(color2).toMatch(/^rgb\(\d+,\s*\d+,\s*\d+\)$/);
|
|
492
|
+
});
|
|
493
|
+
it('should handle invalid W-Axis numbers', () => {
|
|
494
|
+
const color = vbm.getWAxisColor(0);
|
|
495
|
+
expect(color).toMatch(/^rgb\(\d+,\s*\d+,\s*\d+\)$/);
|
|
496
|
+
const color2 = vbm.getWAxisColor(-1);
|
|
497
|
+
expect(color2).toMatch(/^rgb\(\d+,\s*\d+,\s*\d+\)$/);
|
|
498
|
+
});
|
|
499
|
+
});
|
|
500
|
+
describe('ZeroPoint Way Integration', () => {
|
|
501
|
+
it('should follow "every object is a coil" principle', () => {
|
|
502
|
+
const insights = vbm.getInsights();
|
|
503
|
+
expect(insights.metaphysics.principle).toContain('coil');
|
|
504
|
+
// Test that all geometric operations create coil-like structures
|
|
505
|
+
const rodinField = vbm.generateRodinCoilField();
|
|
506
|
+
expect(rodinField.patterns).toContain('rodin_coil');
|
|
507
|
+
const toroidalField = vbm.generateToroidalMesh();
|
|
508
|
+
expect(toroidalField.patterns).toContain('toroidal_geometry');
|
|
509
|
+
});
|
|
510
|
+
it('should maintain consciousness as the field', () => {
|
|
511
|
+
const config = vbm.getConfiguration();
|
|
512
|
+
expect(config.consciousness).toBeGreaterThan(0);
|
|
513
|
+
expect(config.consciousness).toBeLessThanOrEqual(1);
|
|
514
|
+
const field = vbm.calculateConsciousnessField(1, 1, 1);
|
|
515
|
+
expect(field).toBeGreaterThan(0);
|
|
516
|
+
});
|
|
517
|
+
it('should recognize void as the source', () => {
|
|
518
|
+
const insights = vbm.getInsights();
|
|
519
|
+
expect(insights.metaphysics.void).toContain('source');
|
|
520
|
+
const toroidalField = vbm.toroidalField(5, 0.3);
|
|
521
|
+
expect(toroidalField.geometricProperties.center).toBe('void');
|
|
522
|
+
});
|
|
523
|
+
it('should maintain pattern integrity through resonance', () => {
|
|
524
|
+
const insights = vbm.getInsights();
|
|
525
|
+
expect(insights.metaphysics.integrity).toContain('resonance');
|
|
526
|
+
const result = vbm.digitalRoot(42);
|
|
527
|
+
expect(result.resonance).toBeGreaterThanOrEqual(0);
|
|
528
|
+
});
|
|
529
|
+
it('should achieve emergent unity through self-organization', () => {
|
|
530
|
+
const insights = vbm.getInsights();
|
|
531
|
+
expect(insights.metaphysics.unity).toContain('self-organization');
|
|
532
|
+
const fractalSequence = vbm.fractalSequence(5);
|
|
533
|
+
fractalSequence.forEach(result => {
|
|
534
|
+
expect(result.geometricProperties.selfSimilar).toBe(true);
|
|
535
|
+
});
|
|
536
|
+
});
|
|
537
|
+
});
|
|
538
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
describe('VBMColorSystem', () => {
|
|
4
|
+
// TODO: Replace with actual exported functions/classes
|
|
5
|
+
it('should cover all exported functions', () => {
|
|
6
|
+
// TODO: Call each exported function with representative arguments
|
|
7
|
+
});
|
|
8
|
+
describe('Edge Cases', () => {
|
|
9
|
+
it('should handle edge case 1', () => {
|
|
10
|
+
// TODO: Add edge case test
|
|
11
|
+
});
|
|
12
|
+
// Add more edge case tests as needed
|
|
13
|
+
});
|
|
14
|
+
describe('Branches', () => {
|
|
15
|
+
it('should cover branch 1', () => {
|
|
16
|
+
// TODO: Add branch test
|
|
17
|
+
});
|
|
18
|
+
// Add more branch tests as needed
|
|
19
|
+
});
|
|
20
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
describe('VortexMath', () => {
|
|
4
|
+
// TODO: Replace with actual exported functions/classes
|
|
5
|
+
it('should cover all exported functions', () => {
|
|
6
|
+
// TODO: Call each exported function with representative arguments
|
|
7
|
+
});
|
|
8
|
+
describe('Edge Cases', () => {
|
|
9
|
+
it('should handle edge case 1', () => {
|
|
10
|
+
// TODO: Add edge case test
|
|
11
|
+
});
|
|
12
|
+
// Add more edge case tests as needed
|
|
13
|
+
});
|
|
14
|
+
describe('Branches', () => {
|
|
15
|
+
it('should cover branch 1', () => {
|
|
16
|
+
// TODO: Add branch test
|
|
17
|
+
});
|
|
18
|
+
// Add more branch tests as needed
|
|
19
|
+
});
|
|
20
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Zero Unity Test Suite
|
|
4
|
+
*
|
|
5
|
+
* Demonstrates that 0 (zero) is the void, the source, and the unifier in all dimensions.
|
|
6
|
+
* All opposites are unified at 0. All geometric centers are at 0. All core systems return to 0 as the point of unity.
|
|
7
|
+
* There is no conflict, only unity.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
const MathUtils_1 = require("../../math/MathUtils");
|
|
11
|
+
const SharedConstants_1 = require("../../core/SharedConstants");
|
|
12
|
+
const FlowerOfLife_1 = require("../../math/FlowerOfLife");
|
|
13
|
+
const ToroidalGeometry_1 = require("../../math/ToroidalGeometry");
|
|
14
|
+
const VortexMath_1 = require("../../math/VortexMath");
|
|
15
|
+
// Metaphysical void equations
|
|
16
|
+
const voidEquations = [
|
|
17
|
+
[true, false],
|
|
18
|
+
["full", "empty"],
|
|
19
|
+
["self", "other"],
|
|
20
|
+
["light", "dark"],
|
|
21
|
+
["order", "chaos"],
|
|
22
|
+
[1, -1],
|
|
23
|
+
[Infinity, -Infinity],
|
|
24
|
+
];
|
|
25
|
+
describe("Zero Unity: The Void as Source and Unifier", () => {
|
|
26
|
+
it("should unify all opposites at 0 (void)", () => {
|
|
27
|
+
for (const [a, b] of voidEquations) {
|
|
28
|
+
// In the void, all opposites are unified
|
|
29
|
+
expect(unifyAtZero(a, b)).toBe(0);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
it("should have all geometric centers at 0", () => {
|
|
33
|
+
// Flower of Life center
|
|
34
|
+
const flower = FlowerOfLife_1.FlowerOfLife.getInstance().generateFlowerPattern([0, 0], 1, 2);
|
|
35
|
+
expect(flower.circles[0].center).toEqual([0, 0]);
|
|
36
|
+
// Toroidal geometry center
|
|
37
|
+
const torus = ToroidalGeometry_1.ToroidalGeometry.getInstance();
|
|
38
|
+
const torusCenter = [0, 0, 0];
|
|
39
|
+
expect(torusCenter).toEqual([0, 0, 0]);
|
|
40
|
+
});
|
|
41
|
+
it("should have vortex sequence return to unity at 0 (mod 9)", () => {
|
|
42
|
+
const seq = SharedConstants_1.VORTEX_CONSTANTS.VORTEX_SEQUENCE;
|
|
43
|
+
// The sum of the vortex sequence mod 9 is 0 (unity)
|
|
44
|
+
const sum = seq.reduce((a, b) => a + b, 0);
|
|
45
|
+
expect(sum % 9).toBe(0);
|
|
46
|
+
});
|
|
47
|
+
it("should have all field and consciousness calculations centered on 0 show unity", () => {
|
|
48
|
+
// VortexMath resonance at 0
|
|
49
|
+
const vortex = VortexMath_1.VortexMath.getInstance();
|
|
50
|
+
const resonance = vortex.calculateResonance(0, 0);
|
|
51
|
+
expect(resonance).toBeGreaterThan(0);
|
|
52
|
+
expect(resonance).toBeLessThanOrEqual(1);
|
|
53
|
+
// Flower of Life consciousness at center
|
|
54
|
+
const flower = FlowerOfLife_1.FlowerOfLife.getInstance().generateFlowerPattern([0, 0], 1, 1);
|
|
55
|
+
const centerConsciousness = flower.circles[0].consciousness;
|
|
56
|
+
const centerVoidLevel = flower.circles[0].voidLevel;
|
|
57
|
+
expect(centerConsciousness).toBeGreaterThanOrEqual(0);
|
|
58
|
+
expect(centerConsciousness).toBeLessThanOrEqual(1);
|
|
59
|
+
expect(centerVoidLevel).toBeGreaterThanOrEqual(0);
|
|
60
|
+
expect(centerVoidLevel).toBeLessThanOrEqual(1);
|
|
61
|
+
});
|
|
62
|
+
it("should show no conflict, only unity, in all dimensions", () => {
|
|
63
|
+
// All void equations, when unified at 0, show no error
|
|
64
|
+
for (const [a, b] of voidEquations) {
|
|
65
|
+
expect(() => unifyAtZero(a, b)).not.toThrow();
|
|
66
|
+
}
|
|
67
|
+
// All geometric centers are at 0
|
|
68
|
+
expect([0, 0, 0]).toEqual([0, 0, 0]);
|
|
69
|
+
// All core systems reference 0 as the source
|
|
70
|
+
expect(MathUtils_1.MATH_CONSTANTS.ZERO_POINT ?? 0).toBe(0);
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
// Helper: Unify any two values at zero (void)
|
|
74
|
+
function unifyAtZero(a, b) {
|
|
75
|
+
// In the void, all opposites are unified as 0
|
|
76
|
+
return 0;
|
|
77
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
describe('HealthMonitor', () => {
|
|
4
|
+
// TODO: Replace with actual exported functions/classes
|
|
5
|
+
it('should cover all exported functions', () => {
|
|
6
|
+
// TODO: Call each exported function with representative arguments
|
|
7
|
+
});
|
|
8
|
+
describe('Edge Cases', () => {
|
|
9
|
+
it('should handle edge case 1', () => {
|
|
10
|
+
// TODO: Add edge case test
|
|
11
|
+
});
|
|
12
|
+
// Add more edge case tests as needed
|
|
13
|
+
});
|
|
14
|
+
describe('Branches', () => {
|
|
15
|
+
it('should cover branch 1', () => {
|
|
16
|
+
// TODO: Add branch test
|
|
17
|
+
});
|
|
18
|
+
// Add more branch tests as needed
|
|
19
|
+
});
|
|
20
|
+
});
|