MCPcopy Create free account

hub / github.com/4RH1T3CT0R7/ttf-doom / functions

Functions584 in github.com/4RH1T3CT0R7/ttf-doom

Methodtest_keywords_recognised
(self)
tests/test_lexer.py:336
Methodtest_left_associativity
1 - 2 - 3 should parse as (1 - 2) - 3.
tests/test_parser.py:350
Methodtest_level1_border_walls
All border cells are walls.
tests/test_raycaster.py:777
Methodtest_level1_size
Level 1 map has 256 cells (16x16).
tests/test_raycaster.py:771
Methodtest_lexer_succeeds
Lexer produces tokens without errors.
tests/test_raycaster.py:121
Methodtest_line_tracking
(self)
tests/test_lexer.py:359
Methodtest_local_var_in_func
(self)
tests/test_parser.py:613
Methodtest_local_var_in_while_body
Local variable declared inside a while loop compiles.
tests/test_raycaster.py:531
Methodtest_logical_operators
a and b or c should parse as (a and b) or c.
tests/test_parser.py:311
Methodtest_lookup_array
(self)
tests/test_codegen.py:186
Methodtest_lookup_const
(self)
tests/test_codegen.py:172
Methodtest_lookup_undefined_raises
(self)
tests/test_codegen.py:193
Methodtest_lookup_var
(self)
tests/test_codegen.py:179
Methodtest_maxp_function_defs
maxp.maxFunctionDefs is at least as large as the allocator requires.
tests/test_pipeline.py:286
Functiontest_maxp_settings
maxp table has the required resource reservations.
tests/test_variable_poc.py:153
Methodtest_maxp_storage
maxp.maxStorage is at least as large as the allocator requires.
tests/test_pipeline.py:278
Functiontest_maxp_values
maxp resource reservations match the defaults.
tests/test_font_builder.py:246
Methodtest_missing_colon_after_func
(self)
tests/test_parser.py:567
Methodtest_missing_rparen
(self)
tests/test_parser.py:594
Methodtest_missing_type_annotation
(self)
tests/test_parser.py:575
Methodtest_moderate_values_no_overflow
Values in the DOOM game range should not overflow 32-bit.
tests/test_stdlib.py:641
Methodtest_modulo
(self)
tests/test_codegen.py:770
Methodtest_mul_before_add
(self)
tests/test_codegen.py:623
Methodtest_mul_before_add
2 + 3 * 4 should parse as 2 + (3 * 4).
tests/test_parser.py:263
Methodtest_multi_function_program
(self)
tests/test_codegen.py:1317
Methodtest_multi_line
(self)
tests/test_lexer.py:263
Methodtest_multiple_comment_lines
(self)
tests/test_lexer.py:106
Methodtest_multiple_dedents_at_once
(self)
tests/test_lexer.py:155
Methodtest_multiple_statements_in_block
(self)
tests/test_parser.py:673
Methodtest_multiple_vars
(self)
tests/test_codegen.py:236
Methodtest_multiplication_compensation
DSL * operator generates MUL with 4096 compensation.
tests/test_raycaster.py:658
Methodtest_multiplication_plain_int
(self)
tests/test_codegen.py:746
Methodtest_multiply_by_zero
(self)
tests/test_stdlib.py:427
Methodtest_multiply_commutativity
fixmul(a, b) should equal fixmul(b, a) within tolerance.
tests/test_stdlib.py:432
Methodtest_multiply_identity
Multiplying by 1.0 should return the original value.
tests/test_stdlib.py:442
Methodtest_multiply_matches_ideal
Simulated result should be close to the ideal computation.
tests/test_stdlib.py:449
Methodtest_neg_negative
(self)
tests/test_stdlib.py:607
Methodtest_neg_positive
(self)
tests/test_stdlib.py:603
Methodtest_neg_zero
(self)
tests/test_stdlib.py:611
Methodtest_negation
(self)
tests/test_codegen.py:781
Methodtest_negative
(self)
tests/test_stdlib.py:196
Methodtest_negative_divisions
( self, a_float: float, b_float: float, expected_float: float )
tests/test_stdlib.py:523
Methodtest_negative_multiplications
( self, a_float: float, b_float: float, expected_float: float )
tests/test_stdlib.py:414
Methodtest_nested_call
(self)
tests/test_parser.py:388
Methodtest_nested_function_calls
Nested function calls compile correctly.
tests/test_raycaster.py:578
Methodtest_nested_if
(self)
tests/test_parser.py:181
Methodtest_nested_if_else
(self)
tests/test_codegen.py:1357
Methodtest_nested_indent
(self)
tests/test_lexer.py:143
Methodtest_no_empty_bodies
(self, stdlib: dict[str, list[str]])
tests/test_stdlib.py:241
Methodtest_non_representable_fractions
Values like 0.1 can't be exactly represented in 16.16. Verify that the algorithm itself is exact by comparing against the ideal resul
tests/test_stdlib.py:378
Methodtest_not_operator
(self)
tests/test_codegen.py:709
Methodtest_not_operator
(self)
tests/test_parser.py:338
Functiontest_notdef_custom_dimensions
.notdef with custom dimensions produces correct coordinates.
tests/test_glyph_builder.py:183
Functiontest_notdef_glyph_coordinates
.notdef glyph matches expected rectangle vertices.
tests/test_glyph_builder.py:175
Functiontest_notdef_glyph_has_1_contour
.notdef glyph has exactly 1 contour.
tests/test_glyph_builder.py:163
Functiontest_notdef_glyph_has_4_points
.notdef glyph has exactly 4 points.
tests/test_glyph_builder.py:169
Methodtest_one
(self)
tests/test_stdlib.py:190
Methodtest_operator
(self, symbol: str, expected_type: TokenType)
tests/test_lexer.py:200
Methodtest_or_operator
(self)
tests/test_codegen.py:698
Methodtest_output_is_valid_ttfont
The output file loads correctly as a TTFont.
tests/test_pipeline.py:109
Methodtest_parentheses_override
(2 + 3) * 4 should group addition first.
tests/test_parser.py:280
Methodtest_parser_succeeds
Parser produces a Program AST without errors.
tests/test_raycaster.py:129
Methodtest_player_spawn_is_open
Player spawn position (160, 160) -> cell (2, 2) is open.
tests/test_raycaster.py:794
Functiontest_poc_font_creates_valid_ttf
Font file exists and is non-empty.
tests/test_poc_font.py:32
Functiontest_poc_font_glyph_coordinates
Glyph 'A' outline matches the expected rectangle vertices.
tests/test_poc_font.py:80
Functiontest_poc_font_glyph_has_4_points
Glyph 'A' is a single-contour rectangle with exactly 4 points.
tests/test_poc_font.py:69
Functiontest_poc_font_glyph_has_instructions
Glyph 'A' carries a non-empty hinting program.
tests/test_poc_font.py:96
Functiontest_poc_font_has_hinting_tables
Font contains fpgm and prep hinting tables.
tests/test_poc_font.py:43
Functiontest_poc_font_has_scfs_in_assembly
Glyph 'A' hinting program contains SCFS instructions.
tests/test_poc_font.py:107
Functiontest_poc_font_has_svtca_in_assembly
Glyph 'A' hinting program sets the Y-axis vector via SVTCA.
tests/test_poc_font.py:118
Functiontest_poc_font_maxp_settings
maxp table has the required resource reservations.
tests/test_poc_font.py:52
Functiontest_poc_font_name
Font family name is 'DoomPOC'.
tests/test_poc_font.py:147
Functiontest_poc_font_targets_points_2_and_3
Glyph program pushes point indices 2 and 3 for SCFS.
tests/test_poc_font.py:129
Functiontest_point_order_per_bar
Each bar has points in BL, BR, TR, TL order.
tests/test_glyph_builder.py:134
Methodtest_points_per_contour
Each contour in the bar glyph has exactly 4 points.
tests/test_pipeline.py:252
Methodtest_positive_divisions
( self, a_float: float, b_float: float, expected_float: float )
tests/test_stdlib.py:497
Methodtest_positive_multiplications
( self, a_float: float, b_float: float, expected_float: float )
tests/test_stdlib.py:365
Methodtest_prep_asm_generation
generate_prep_load_tables produces the expected number of WS[].
tests/test_raycaster.py:751
Methodtest_prep_contains_init
The prep table contains variable initialisation instructions.
tests/test_pipeline.py:119
Methodtest_prep_disassembles
prep program can be disassembled without errors.
tests/test_pipeline.py:322
Methodtest_prep_does_not_reset_player_state
Prep must NOT reset player vars (they persist between frames).
tests/test_raycaster.py:282
Methodtest_prep_has_bytecode
prep table contains bytecode.
tests/test_raycaster.py:424
Functiontest_prep_load_large_index_uses_pushw
Storage indices > 255 use PUSHW.
tests/test_math_tables.py:259
Functiontest_prep_load_negative_value_uses_pushw
Negative values use PUSHW.
tests/test_math_tables.py:253
Functiontest_prep_load_positive_value_uses_pushb
Positive values in [0, 255] use PUSHB.
tests/test_math_tables.py:247
Functiontest_prep_load_small_index_uses_pushb
Storage indices in [0, 255] use PUSHB.
tests/test_math_tables.py:265
Functiontest_prep_load_swap_and_ws
Each _push_and_store call ends with SWAP[] and WS[].
tests/test_math_tables.py:271
Functiontest_prep_load_tables_contains_ws
Assembly includes WS[] instructions for storing values.
tests/test_math_tables.py:213
Functiontest_prep_load_tables_correct_indices
Assembly stores values at the correct storage indices.
tests/test_math_tables.py:221
Functiontest_prep_load_tables_correct_instruction_count
Each table entry produces 4 instructions (push val, push idx, SWAP, WS).
tests/test_math_tables.py:205
Functiontest_prep_load_tables_generates_assembly
generate_prep_load_tables produces non-empty assembly.
tests/test_math_tables.py:198
Methodtest_prep_loads_map_data
prep loads non-zero map values into storage.
tests/test_raycaster.py:444
Methodtest_prep_loads_sin_cos_tables
prep assembly contains many WS[] instructions for table loading.
tests/test_raycaster.py:430
Methodtest_prep_starts_with_svtca
(self)
tests/test_codegen.py:958
Methodtest_prep_starts_with_svtca
prep begins with SVTCA[0] (set to Y-axis).
tests/test_raycaster.py:439
Methodtest_program_with_while
(self)
tests/test_parser.py:543
Methodtest_push_255
(self)
tests/test_codegen.py:892
Methodtest_push_256_uses_pushw
(self)
tests/test_codegen.py:897
Methodtest_push_max_pushw
(self)
tests/test_codegen.py:907
Methodtest_push_min_pushw
(self)
tests/test_codegen.py:912
← previousnext →401–500 of 584, ranked by callers