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

Testing for the negation of check_function() or check_code() #224

Open
terhorst opened this issue Jan 30, 2019 · 1 comment
Open

Testing for the negation of check_function() or check_code() #224

terhorst opened this issue Jan 30, 2019 · 1 comment

Comments

@terhorst
Copy link

I am using this package to for an intro data science class. In one exercise the students need to compute the entry-wise maximum of two columns of data. One correct way to do this is using pmax(), and a common beginner mistake is to use max() instead. In testing their solution, I would like to provide some feedback based on if they are calling max(). Is there a way to do this? It's sort of the negation of a check_function() or check_code() call.

@hermansje
Copy link
Member

hermansje commented Jan 30, 2019

There is no easy approach yet for that check.
You can check this issue for different suggestions on how you can emulate such a test.

As you are using this to support a class, this might also be of interest to you:

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

2 participants