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

Set the appropriate error codes on failure #19

Open
abdullahemad12 opened this Issue Sep 9, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@abdullahemad12
Owner

abdullahemad12 commented Sep 9, 2018

Task

An error number should be set whenever a search, delete, update is performed on the tree but no corresponding key was found

Method

new Error code:
#define CBT_KEY_NOT_FOUND 2
set this error whenever the helpers of search, delete, or update returns NULL.

Where to code

src/cranbtree.c

Tests

This should pass the following:

  1. cbt_key_not_found_error_test1
  2. cbt_key_not_found_error_test2
@avnish98

This comment has been minimized.

Show comment
Hide comment
@avnish98

avnish98 Sep 9, 2018

@abdullahemad12 I would like to work on this one.

avnish98 commented Sep 9, 2018

@abdullahemad12 I would like to work on this one.

@abdullahemad12

This comment has been minimized.

Show comment
Hide comment
@abdullahemad12

abdullahemad12 Sep 9, 2018

Owner

@avnish98 sure! go ahead 👍

Owner

abdullahemad12 commented Sep 9, 2018

@avnish98 sure! go ahead 👍

@avnish98 avnish98 referenced this issue Sep 9, 2018

Open

Added error code for key not found #20

1 of 1 task complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment