30 lines
1.4 KiB
JavaScript
30 lines
1.4 KiB
JavaScript
|
|
import assert from 'node:assert/strict'
|
||
|
|
import fs from 'node:fs'
|
||
|
|
import test from 'node:test'
|
||
|
|
|
||
|
|
const architecture = JSON.parse(
|
||
|
|
fs.readFileSync(new URL('../../../routing/hololake-current-architecture.json', import.meta.url), 'utf8'),
|
||
|
|
)
|
||
|
|
const routePage = fs.readFileSync(
|
||
|
|
new URL('../../hololake-platform/architecture/HOLOLAKE-FIFTH-DOMAIN-NUMBERED-LANGUAGE-AND-REALITY-CHANNELS-20260821.md', import.meta.url),
|
||
|
|
'utf8',
|
||
|
|
)
|
||
|
|
|
||
|
|
test('current architecture resolves three distinct zero-core-related channel objects first', () => {
|
||
|
|
const fifthDomain = architecture.parallel_planes.fifth_domain_private_system
|
||
|
|
|
||
|
|
assert.equal(fifthDomain.language_reasoning_channel, 'ICE-CH-HB001')
|
||
|
|
assert.equal(fifthDomain.reality_development_channel, 'ICE-CH-ZC001')
|
||
|
|
assert.equal(fifthDomain.public_zero_core_channel, 'CH-ZERO-CORE-LPM')
|
||
|
|
assert.equal(fifthDomain.public_zero_core_is_alias, false)
|
||
|
|
assert.match(architecture.read_order[0], /FIFTH-DOMAIN-NUMBERED-LANGUAGE-AND-REALITY-CHANNELS/)
|
||
|
|
assert.equal(architecture.truth_boundary.historical_zero_core_name_is_current_route, false)
|
||
|
|
})
|
||
|
|
|
||
|
|
test('the current route page names every path and denies implicit authority crossover', () => {
|
||
|
|
assert.match(routePage, /ICE-CH-HB001/)
|
||
|
|
assert.match(routePage, /ICE-CH-ZC001/)
|
||
|
|
assert.match(routePage, /CH-ZERO-CORE-LPM/)
|
||
|
|
assert.match(routePage, /不得.*混合|三个不同对象/)
|
||
|
|
assert.match(routePage, /不等于高风险写入授权/)
|
||
|
|
})
|