- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 240
West Midlands | 25-ITP-Sep | Baba Yusuf | Sprint 3 | Coursework/sprint-3/2-practice-tdd #799
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
base: main
Are you sure you want to change the base?
West Midlands | 25-ITP-Sep | Baba Yusuf | Sprint 3 | Coursework/sprint-3/2-practice-tdd #799
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests are very comprehensive. Nicely done.
…tests for clarity
… test cases for clarity and coverage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good.
| if (stringOfCharacters === null || stringOfCharacters === undefined) { | ||
| throw new Error("The input string cannot be null or undefined."); | ||
| } | ||
| if (typeof stringOfCharacters !== "string") { | ||
| throw new Error("The input string must be a string type."); | ||
| } | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why treat null and undefined differently from other non-string types?
Learners, PR Template
Self checklist
Changelist
I completed the three practice exercises in 2-practice-tdd