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

Merge Main into branch-A-CodeQuality #3

Merged
merged 6 commits into from
Mar 3, 2024
Merged

Conversation

tahsinhasem
Copy link
Owner

No description provided.

tah5in and others added 6 commits March 3, 2024 21:18
There were no assertions in the Commands that were being implemented in
dude. Especially the constructors, where many of the constructions were
assuming certain conditions to hold true.

Conditions that the command class sub-class constructors assumed to
be true:
* String input : Assumed to be not null, assumed to contain appropriate
command
* Tasklist tasklist: Assumed to be not null

Now assertions have been added to the constructors to make sure such
conditions are actually holding true.

These assertions will help to reduce bugs making sure the conditions
assumed to be true, actually hold true.

I believe this will drastically reduce bugs when I decide to add on more
features.
adding assertions to main code
@tahsinhasem tahsinhasem merged commit 4bff7a6 into branch-A-CodeQuality Mar 3, 2024
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

Successfully merging this pull request may close these issues.

2 participants