Skip to content

Conversation

@ewfian
Copy link
Owner

@ewfian ewfian commented Nov 19, 2025

Add comprehensive unit tests for parser.ts to achieve 100% coverage, providing a robust regression safety net before planned refactoring.

The existing unit tests for parser.ts were incomplete, leaving many opcode branches untested. This PR introduces new test fixtures and significantly expands the #parse advanced opcodes test suite to cover numeric/binary opcodes, container/memo operations, object construction (GLOBAL, EXT, NEWOBJ, NEWOBJ_EX), various BUILD states, and STRING security checks. This ensures full coverage and stability for future refactoring efforts.


Open in Cursor Open in Web

Adds comprehensive tests for various advanced opcodes, including numeric, binary, container, memo, extension, and object construction opcodes.

Co-authored-by: lsraicursor4 <lsraicursor4@kr1.cc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants