Files
2125_GCE/tests/__pycache__/test_lain_glyph_bridge.cpython-314.pyc
T

59 lines
12 KiB
Plaintext
Raw Normal View History

2026-07-09 12:54:44 -04:00
+
ÿÜ0j>*ãó&Rt^RIt^RIHt]PP ^]!]P!444^RIH t H
t
H t H t ^RI
HtRtRtRtRtR tR
tR tR tR
tRtRt]R8Xd]P6!]!44R#R#)u“Tests for LAIN ↔ Supercharged Glyph Bridge
Tests verify:
- load_glyph_context loads correct glyphs from registry
- inject_glyph_metadata_into_lane adds glyph fields
- compute_glyph_resonance returns numeric values
- augment_fused_symbol_with_glyphs adds glyph metadata
- execute_with_lain integrates glyph bridge into cognition
- Glyph metadata appears in lane results, fused symbol, and diagnostics
N)ÚPath)Úload_glyph_contextÚinject_glyph_metadata_into_laneÚcompute_glyph_resonanceÚ augment_fused_symbol_with_glyphs)Úexecute_gx_pathcóôRRRR/p/p\W4p\V\4'g\R4R#VR,R8wd\R4R#VR ,R
8wd\R 4R#\R 4R
#)z6Test loading glyph context when no glyph is specified.Ú source_fileútest.pyÚversionz1.0.0z!FAIL: glyph_context is not a dictFÚfoundz7FAIL: Should return found=False when no glyph specifiedÚidÚnonez1FAIL: Should return id='none' when no glyph foundz.PASS: load_glyph_context handles missing glyphT)rÚ
isinstanceÚdictÚprint©ÚmanifestÚcontextÚ
glyph_contexts Ú3/home/t420/2125_GCE/tests/test_lain_glyph_bridge.pyÚ test_load_glyph_context_no_glyphrs}ð €Hð€Gä& 9€Mä m¤T× 
Ðà Ô
Ðà˜fÔ
Ðä Ð
 ócóDRRRR/p/p\W4pVR,R8wd\R4R#VR ,R8wd\R
VR , 24R#VR ,R 8Xd\R
4R#VR,^8:d\R4R#\RVR , R24R#)z0Test loading glyph context by explicit glyph_id.r r
Úglyph_idÚG001r TzFAIL: Should find glyph G001Fr
zFAIL: Expected G001, got Únamerz%FAIL: Glyph name should not be 'none'Úscorez$FAIL: Glyph score should be positivez%PASS: load_glyph_context found G001 (Úrrrs rÚtest_load_glyph_context_by_idr 5ð €Hð€Gä& 9€Mà Ô
Ðà˜fÔ
Ð)¨-¸Õ*=Ð)>Ðà Ô
Ðà Ô
Ðä Ð 1°-ÀÕ2GÐ1HÈÐ
 rcó†RR/p/p\W4p.ROpVFpWB9gK \RV 24R# \R4R#)z5Test that glyph context includes all required fields.rrzFAIL: Missing field: Fz0PASS: glyph_context includes all required fieldsT) r
rÚcategoryrÚprawÚoriginalMetricsÚ
activationÚlineager r)rrrÚrequired_fieldsÚfields rÚtest_load_glyph_context_fieldsr)SsUà˜#€HØ€Gä& 9€Mò€Oó
Ø Ö Ð)¨%¨Ð ñ

Ð
 rcóLRRRR.R.R./pRR/p\V/4p\W4pVR,R8wd\R 4R
#RV9d\R 4R
#VR,R8wd\R 4R
#R
V9d\R4R
#RV9d\R4R
#\R4R#)z/Test injecting glyph metadata into lane result.Úsummaryz Test summaryÚ
key_pointsÚpoint1Ú constraintsÚopen_questionsrrz&FAIL: Original summary was overwrittenFzFAIL: glyph_id not addedúFAIL: glyph_id mismatchÚ
glyph_namezFAIL: glyph_name not addedÚglyph_frequency_signaturez)FAIL: glyph_frequency_signature not addedz5PASS: inject_glyph_metadata_into_lane works correctlyT©rrr)Ú lane_resultrrÚ augmenteds rÚ$test_inject_glyph_metadata_into_laner6hð x˜€Kð˜#€HÜ& Ó4€Mä ÓK€IðÕ˜~Ô
Ðð˜Ô
ÐàÕ Ô
Ðà˜
Ðà"¨)Ô
Ðä Ð
 rcó„RRR.R.R./p\//4p\W4pW 8wd\R4R#\R4R #)
z#Test inject when no glyph is found.r+ÚTestr,r.r/z+FAIL: Should return unchanged when no glyphFz,PASS: inject handles missing glyph correctlyTr3)r4rr5s rÚtest_inject_no_glyphr9sW𠘀Kô' r¨2Ó.€Mä ÓK€IðÔÜ
Ðä Ð
 rcóü\//4p\V4p\V\4'g\ R4R#VR,R8wd\ R4R#VR,R8wd\ R4R#\ R4R #)
z0Test computing resonance when no glyph is found.úFAIL: resonance is not a dictFÚ glyph_foundz%FAIL: Should indicate glyph not foundÚoverall_resonanceçz%FAIL: Should return 0.0 when no glyphz3PASS: compute_glyph_resonance handles missing glyphT)rrrrr)rÚ resonances rÚ%test_compute_glyph_resonance_no_glyphr@¦spä& r¨2Ó.€Mä
Ó6€Iä × 
ÐàÕ 5Ô