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

71 lines
13 KiB
Plaintext
Raw Normal View History

2026-07-09 12:54:44 -04:00
+
ÿÜ0jV)ãó:Rt^RIt^RIHt]PP ^]!]P!444^RIH t H
t
H t H t H
t
HtHtHtHtRtRtRtRtRtR tR
tR tR tR
tRtRtRt]R8Xd]P@!]!44R#R#)a<Tests for Supercharged Glyph Registry (LedoGlyph600)
Tests verify:
- load_all_supercharged loads exactly 600 glyphs
- get_super returns correct glyph data
- list_super_ids returns all glyph IDs
- search_super works across supercharged fields
- super_stats reports correct metadata
- Helper functions work correctly
N)ÚPath) Úload_all_superchargedÚ get_superÚlist_super_idsÚ search_superÚ super_statsÚget_super_fieldÚlist_super_by_categoryÚget_super_by_bandÚget_glyphs_by_score_rangecóÆ\4\4pVR,R8wd\RVR, 24R#VR,'g\R4R#\R4R#) z)Test loading all 600 supercharged glyphs.Ú total_glyphséXzFAIL: Expected 600 glyphs, got FÚloadedz#FAIL: Registry not marked as loadedzPASS: Loaded 600 glyphsT)rrÚprint)Ústatss Ú7/home/t420/2125_GCE/tests/test_supercharged_registry.pyÚtest_load_all_superchargedrsVäÔÜ ‹M€Eà ˆ^Õ Ô
аnÕ0EÐ/FÐà ?Œ?Ü
Ðä Ð  ócó^\4\4pV'g\R4R#V^,p\V4pVf\RV 24R#.R OpVFpWB9gK \RV 24R# VR,V8wd\RVR, RV 24R#\RV R 24R
#) z(Test retrieving individual glyphs by ID.zFAIL: No glyph IDs availableFzFAIL: Could not get glyph ÚidzFAIL: Glyph missing field: zFAIL: Glyph ID mismatch: z != zPASS: Retrieved glyph z with all required fieldsT)rÚnameÚcategoryÚbandÚscore)rrrr)ÚidsÚfirst_idÚglyphÚrequired_fieldsÚfields rÚtest_get_superr 0s¸äÔÜ
Ó
€Cç Ü
Ðð1v€HÜ  €Eà ‚}Ü
Ð*¨8¨*ÐòB€OÛ ˆØ Ö Ü Ð¨wÐ ñ

ˆT…{Ü
Ð)¨%°­+¨°d¸8¸ä Ð " 8 *Ð,EÐ
 rcóh\4\R4pVe\R4R#\R4R#)z0Test retrieving non-existent glyph returns None.Ú NONEXISTENTz.FAIL: Should return None for nonexistent glyphFz(PASS: Returns None for nonexistent glyphT)rrr)rs rÚtest_get_super_nonexistentr#Ps0äÔÜ  $€Eà ÒÜ
Ðä Ð
 rcó^\4\4p\V4R8wd\R\V4 24R#V\ V48wd\R4R#\
;QJdRV4F 'dK RM RM
!RV44'g\R4R#\R4R#) zTest listing all glyph IDs.rzFAIL: Expected 600 IDs, got FzFAIL: IDs are not sortedc3óB"TFp\V\4xK R#5i)N)Ú
isinstanceÚstr)Ú.0rs& rÚ <genexpr>Ú&test_list_super_ids.<locals>.<genexpr>jséÐ1©S rŒz˜"œc×"«SùsTzFAIL: Not all IDs are stringsz!PASS: Listed 600 sorted glyph IDs)rrÚlenrÚsortedÚall)rs rÚtest_list_super_idsr.]äÔÜ
Ó
€Cä
ˆ3ƒx3„Ü
Ð,¬S°«X¨JÐà
ŒfSÜ
Ðç ‹3Ñ1©SÓ133Š3Ñ1©SÓ1× 
Ðä Ð  rcóÊ\4\RR.R7p\V4^8Xd\R4R#V^,R,R8wd\R4R#\R4R#) z Test basic search functionality.ÚG001r©ÚfieldszFAIL: Could not find G001FzFAIL: First result is not G001zPASS: Found G001 by ID searchT)rrr+r)Úresultss rÚtest_search_super_basicr4rsYäÔô˜6¨4¨&Ô1€GÜ
ˆ7ƒ|Ü
Ðàˆq…z˜6Ô
Ðä Ð  rcóf\4\R4pVf\R4R#VPRR4P 4pV'g\R4R#\ VP
4R.R7p\V4^8Xd\RVP
4 24R#\R 4R
#) zTest case-insensitive search.r0z$FAIL: Could not load reference glyphFrÚz!FAIL: Reference glyph has no namer1z)FAIL: Case-insensitive search failed for z#PASS: Case-insensitive search worksT)rrrÚgetÚlowerrÚupperr+)Ú first_glyphrr3s rÚ"test_search_super_case_insensitiver;s•äÔô˜FÓ#€KØÒÜ
Ðà ?‰?˜6  &× .€Dß Ü
Ðô˜4Ÿ:™:›<°°Ô9€GÜ
ˆ7ƒ|Ü
Ð9¸$¿*¹*»,¸Ðä Ð  rcóò\4\RR.^R7p\4pVR,F;p\V^R7p\V4^8”gK"\ R\V4 R24R# \ R 4R
#) zTest search limit parameter.r6r)r2Úlimit:Né
N)r=z
FAIL: Got z results, limit was 3FzPASS: Search limit respectedT)rrrr+r)r3rÚtest_ids rÚtest_search_super_limitr@suäÔô˜2 z l¸!Ô<€Gô Ó
€Cðs—8ܘw¨aÔÜ ˆw‹<˜ Ü Jœs 7|˜nÐ,AÐ ñ ô 
Ð
 rcóž\4\4p.ROpVFpW 9gK \RV 24R# VR,R8wd\R 4R#\VR,\4'g\R
4R#\VR,\4'g\R 4R#.ROpVUu.uFqDVR,9gKVNK ppV'd\R V 24R#VR,R
8wd\R4R#VR,\ 4R,8wd\R4R#\R\
VR,4 R24R
#uupi)zTest statistics reporting.r
Úfields_presentÚ
sample_idsÚ
categoriesrzFAIL: Missing stats key: FrzFAIL: total_glyphs != 600z"FAIL: fields_present is not a listzFAIL: sample_ids is not a listz#FAIL: Missing supercharged fields: TzFAIL: loaded should be True:NéNzFAIL: sample_ids mismatchzPASS: Stats complete with z categories)r
rBrCrDrÚ load_path)rrÚ
activationÚlineageÚprawÚoriginalMetrics)rrrr&Úlistrr+)rÚ
required_keysÚkeyÚsupercharged_fieldsÚmissings rÚtest_super_statsrQ²s5äÔÜ ‹M€Eò€MóˆØ Ö Ü Ð-¨c¨UÐ ñð 
ˆ Ô
Ðä -¬t× 
Ðä e˜LÕ)¬4× 
ÐòÐñ-Q¸%Ð@PÕ:QÑ1Qqˆ-€GÐÜ
Ð3°G°9Ðà ˆX…˜$ÔÜ