Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test to verify that exported_snippets structure is correct #76

Open
Sword-Smith opened this issue Feb 5, 2024 · 0 comments
Open

Comments

@Sword-Smith
Copy link
Contributor

The LHS of the match arms should be entrypoint for the various snippets we want to export. We have a lot of spelling error, and this file is hard to maintain. How can we add a test such that we verify correspondence between the strings in name_to_snippet and the actualy entrypoint strings?

pub fn name_to_snippet(fn_name: &str) -> Box<dyn BasicSnippet> {
    match fn_name {
        // u32
        "tasm_arithmetic_u32_isodd" => Box::new(Isodd),
        "tasm_arithmetic_u32_isu32" => Box::new(Isu32),
        "tasm_arithmetic_u32_safeadd" => Box::new(Safeadd),
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

No branches or pull requests

1 participant