Skip to content

burn(test): Add tests for dynamic array index helper edge cases in LIR lowering#43

Draft
bkmashiro wants to merge 1 commit intomainfrom
burn/test/225pym/add-tests-for-dynamic-array-index-helper
Draft

burn(test): Add tests for dynamic array index helper edge cases in LIR lowering#43
bkmashiro wants to merge 1 commit intomainfrom
burn/test/225pym/add-tests-for-dynamic-array-index-helper

Conversation

@bkmashiro
Copy link
Copy Markdown
Owner

Task

  • ID: 01KNHZFNWDV4871DHZ3C225PYM
  • Type: test
  • Priority: 2
  • CLI: claude

Description

In src/tests/lir/lower.test.ts (or a new file src/tests/lir/lower-dynamic.test.ts), add tests covering: (1) getDynIdxHelper and getDynWrtHelper in src/lir/lower.ts with storage path strings containing special characters (colons, dots, slashes); (2) cache key collision prevention when two different array types produce similar helper names; (3) multi-predecessor block handling for blocks with more than 2 predecessors; (4) the entry block special-case in block extraction. Read src/lir/lower.ts lines 89-192 for the implementation details before writing the tests.

Changes

src/__tests__/lir/lower-dynamic.test.ts | 383 ++++++++++++++++++++++++++++++++
 1 file changed, 383 insertions(+)

Generated by burn-harness

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.

1 participant