Being able to pass arguments to the executed entrypoint #38
Labels
Context: intricated
deep understanding of the codebase required
Difficulty: hard
require extensive knowledge
Duration: 1 day
will take about one day
Techno: cairo
cairo
Techno: rust
rust
Type: feature
a new feature to implement
It is a typical pattern in testing frameworks to be able to define a test function that takes arguments and returns a value, and then to use a
case
feature to call this test multiple times with different inputs and expected output.In the current state of our tool, tests are defined as Cairo functions and called through the
cairo_run
function as entry points.Problem: cairo-rs is built to accept one canonical entry point, the
main
function, which does not take any argument.I think we can modify our fork of cairo-rs so it will init some memory for the arguments before entering the test function
The text was updated successfully, but these errors were encountered: