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

check_function messaging according to how student called the function #279

Open
filipsch opened this issue Jun 12, 2018 · 0 comments
Open

Comments

@filipsch
Copy link
Contributor

filipsch commented Jun 12, 2018

Suppose the following solution and SCT:

# solution
round(1.1234)

# sct
Ex().check_function('round').check_args('number').has_equal_value()

Depending on how the student called the function, the feedback should be different:

round(2.345)    # --> Check the first argument to round
round(number = 2.345) # --> Check the number argument

Currently, this messaging can only be affected by explicitly referring to the argument by position or by name. So currently, it's the SCT that decides which message is generated in case of an error.

@filipsch filipsch self-assigned this Jun 12, 2018
@filipsch filipsch added messages and removed bug labels Jun 12, 2018
@filipsch filipsch removed their assignment Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant