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

Error reporting in cbt_visit_all #24

Open
abdullahemad12 opened this Issue Jan 6, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@abdullahemad12
Copy link
Owner

abdullahemad12 commented Jan 6, 2019

Task

set the op_errorno appropriately when a NULL function pointer is provided or if the number of visited entries does not match the number of entries in the tree. The error codes can be found in include/cranbtree.h

Method

check for errors before and after the tree traversal

Where to code

  • src/cranbtree.c

Tests

  1. cbt_visit_all_test1
  2. cbt_visit_all_test2
    Make sure to uncomment this tests in test/test.c, compile, the run and make sure all the tests passes and nothing is broken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment