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

Handling errors #20

Open
vaeng opened this issue Jan 31, 2024 · 2 comments
Open

Handling errors #20

vaeng opened this issue Jan 31, 2024 · 2 comments

Comments

@vaeng
Copy link
Contributor

vaeng commented Jan 31, 2024

I have an idea for handling errors.

Normally you would deny faulty data to be inserted into the database before it happens.
Currently, we have a start table, that has valid data. We could change this method to insert one row after another and let the students create checks and catch the error message somehow.
I am unsure how obvious these error test cases would be for those who read our test.sql file.

As an alternative, we could ask them to clean erroneous data from the table and check if it is still there.

Do you have other ideas?

@IsaacG
Copy link
Member

IsaacG commented Jan 31, 2024

We could ask them to mark data as valid or not, but that doesn't feel like the spirit of the exercise.

We could also pass if it's not a great fit.

@vaeng
Copy link
Contributor Author

vaeng commented Mar 14, 2024

I have an example of error handling implemented in the nucleotide count exercise. Maybe we can use that style for other exercises as well

https://github.com/exercism/sqlite/blob/main/exercises/practice/nucleotide-count/nucleotide-count_test.sql

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