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

exercise util: generate more useful process_X_case defaults #683

Closed
coriolinus opened this issue Oct 20, 2018 · 1 comment
Closed

exercise util: generate more useful process_X_case defaults #683

coriolinus opened this issue Oct 20, 2018 · 1 comment
Labels
track meta/exercise crate Issues dealing with the exercise crate

Comments

@coriolinus
Copy link
Member

When generating process_X_case functions, the current implementation causes the compiler to complain about unused variables. We should, instead of generating comments describing what it might look like, just generate the example directly. I.e. using the abbreviate case:

fn process_abbreviate_case<I, O>(input: I, expected: O) {
    assert_eq!(
        student_abbreviate_func(input), // TODO: what is the actual name of student_abbreviate_func?
        expected
    );
}
@coriolinus coriolinus added the track meta/exercise crate Issues dealing with the exercise crate label Oct 20, 2018
@coriolinus coriolinus changed the title exercise util: exercise util: generate more useful process_X_case defaults Oct 20, 2018
@senekor
Copy link
Contributor

senekor commented Sep 11, 2023

exercise util has been deleted since, see this thread for more context.

@senekor senekor closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
track meta/exercise crate Issues dealing with the exercise crate
Projects
None yet
Development

No branches or pull requests

2 participants