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

Disallow test function arguments #5928

Open
kayagokalp opened this issue Apr 26, 2024 · 0 comments
Open

Disallow test function arguments #5928

kayagokalp opened this issue Apr 26, 2024 · 0 comments
Labels
compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen enhancement New feature or request forc-test Everything related to the `forc-test` lib and `forc test` command.

Comments

@kayagokalp
Copy link
Member

kayagokalp commented Apr 26, 2024

We should disallow test functions accepting arguments until we have the sway-fuzzing support is ready or if it is also possible we can walk around the requirement to have test functions accepting arguments.

#[test]
fn foo(x: u64) {
    log(x);
}

Should be a compiler error for now

@kayagokalp kayagokalp added enhancement New feature or request compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen forc-test Everything related to the `forc-test` lib and `forc test` command. labels Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen enhancement New feature or request forc-test Everything related to the `forc-test` lib and `forc test` command.
Projects
None yet
Development

No branches or pull requests

1 participant