Skip to content

chore: add a large code generator script#52

Merged
martian56 merged 2 commits intomainfrom
large-code-generator
Apr 17, 2026
Merged

chore: add a large code generator script#52
martian56 merged 2 commits intomainfrom
large-code-generator

Conversation

@martian56
Copy link
Copy Markdown
Owner

This pull request updates the demo and test suite examples to reflect recent changes to the collections API and improves code consistency. The main changes include switching from HashMap to Map, updating method calls to the new API, and ensuring all tests and demos use the latest API patterns. Additionally, the test output formatting has been slightly adjusted.

Collections API migration and demo updates:

  • Updated all usages of HashMap to Map and Set initialization to use collections.new_map() and collections.new_set() in both examples/standard_library_demo.rv and examples/test_suite.rv. Method calls like set, remove, has, and add were updated to match the new immutable API, requiring reassignment after each operation. [1] [2]
  • Renamed test functions and references from test_hashmap_* to test_map_* to match the new Map type. [1] [2]

Test output and code consistency improvements:

  • Updated all test assertions to use format("{}") for value-to-string conversion instead of as string, ensuring consistent formatting. [1] [2] [3]
  • Changed logical operators from && to and in test conditions for language consistency.
  • Simplified test result output by removing emojis and using plain text in test result messages.

Entrypoint updates:

  • Added main(); at the end of both demo and test suite files to ensure the main function is executed when the script runs. [1] [2]

@martian56 martian56 added this to the Package Manager milestone Apr 17, 2026
@martian56 martian56 self-assigned this Apr 17, 2026
@martian56 martian56 added the documentation Improvements or additions to documentation label Apr 17, 2026
@martian56 martian56 merged commit 6000d6d into main Apr 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant