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

38 lines
9.6 KiB
Plaintext
Raw Normal View History

2026-07-09 12:54:44 -04:00
+
ÿÜ0jVãóRt^RIt^RIt^RIt^RIHt]P P^]!]P!444Rt
Rt Rt Rt
RtRtR tR
tR t]R 8Xd]P(!]!44R#R#)
aHIntegration tests for standalone programs: compress_and_run.py, glyph_explorer.py
Tests verify:
- compress_and_run.py imports without error
- compress_source and compress_execute functions work
- Glyph listing and superpower display work
- glyph_explorer.py imports without error
- glyph_explorer commands run without crashing
N)ÚPathcó€^RIpVfQh\R4R# \dp\RT 24Rp?R#Rp?ii;i)z7Test that compress_and_run.py modules import correctly.Nz2PASS: compress_and_run module imports successfullyTz&FAIL: compress_and_run import failed: F)Úcompress_and_runÚprintÚ Exception)ÚcarÚes Ú5/home/t420/2125_GCE/tests/test_standalone_programs.pyÚtest_compress_and_run_importr
sCðۊЈÜ
ÐøÜ ôÜ
Ð6°q°cÐûðús =¤8¸=có†^RIpVPR4p\V\4'gQR\ V4 24h\ V4^
8”gQR\ V4 24hVR,R8XgQRVR, 24h\
R\ V4 R 24R
# \dp\
R T 24Rp?R #Rp?ii;i)
z?Test compress_and_run.compress_source returns valid GSZ3 bytes.Nzdef test(): passzExpected bytes, got zCompressed data too short: :NéNsGSZ3zMissing GSZ3 magic: z*PASS: compress_source returns valid GSZ3 (z bytes)TzFAIL: compress_source failed: F)rÚcompress_sourceÚ
isinstanceÚbytesÚtypeÚlenrr)rÚresultrs r Útest_compress_sourcer ð
Û×$Ð%7Ó8ˆÜ˜&¤%×OÐ,@ÄÀfÃÀÐ*OÓ6{˜ÐLÐ#>¼sÀ6»{¸mÐ!LÓØbz˜IÐ(<¸VÀB½Z¸LÐ&IÓ
Ð:¼3¸v»;¸-ÀwÐøÜ ôÜ
Ð.¨q¨cÐûðúsBBÂ CÂ'B;Â;Ccó.^RIp^RIHpHpV!4V!4pVR,R8XgQRVR, 24hVP 4\ R4R# \ d\ R4R#\dp\ R T 24Rp?R
#Rp?ii;i) z5Test compress_and_run processes glyph data correctly.N©Úload_all_superchargedÚ super_statsÚ total_glyphsiXzExpected 600 glyphs, got z(PASS: show_glyph_info runs without errorTuN â„¹ï¸ show_glyph_info not found as standalone, checking display_glyph_infoz!FAIL: Glyph info display failed: F)rÚglyphs.super_registryrrÚshow_glyph_inforÚAttributeErrorr)rrrÚstatsrs r Ú$test_compress_source_with_glyph_datar/sðÛÔÙ
ˆàÔ`Ð/HÈÈ~ÕI^ÐH_Ð-`Ó ×ÑÔÜ
ÐøÜ ôä
ÐÜ ôÜ
Ð1°!°Ðûðús$AAÁBÁ1BÁ:BÁ;BÂBcó²^RIpVfQh\VR4'gQR4h\R4R# \dp\RT 24Rp?R#Rp?ii;i)z5Test that glyph_explorer.py modules import correctly.NÚ print_headerz#glyph_explorer missing print_headerz0PASS: glyph_explorer module imports successfullyTz$FAIL: glyph_explorer import failed: F)Úglyph_explorerÚhasattrrr)Úgers r Útest_glyph_explorer_importr#Fs\ðÛŠ~Ј~Ür˜>×QÐ,QÓ
ÐøÜ ôÜ
Ð4°Q°CÐûðús‚.2² A½AÁAcóä^RIp^RIHpHpV!4V!4p\P
!4p\ P!V4;_uu_4VPR.4RRR4VP4pRV9gQR4hRV9gRVP49gQR4h\R 4R
# +'giL^;i \dp\R T 24Rp?R #Rp?ii;i)
z3Test glyph_explorer list command via function call.NrÚGLYPHSzMissing header in list outputÚG001Úg001zMissing glyph data in outputz1PASS: glyph_explorer list command produces outputTz*FAIL: glyph_explorer list command failed: F)
r rrrÚioÚStringIOÚ
contextlibÚredirect_stdoutÚcmd_listÚgetvalueÚlowerrr)r"rrrÚoutputrs r Ú test_glyph_explorer_list_commandr2SðÛÔÙ