Skip to content

Birmingham | 26-ITP-May | Gabriel Pawuoi | Sprint 3 | Practice TDD - #1579

Open
KhotKeys wants to merge 5 commits into
CodeYourFuture:mainfrom
KhotKeys:sprint-3-practice-tdd
Open

Birmingham | 26-ITP-May | Gabriel Pawuoi | Sprint 3 | Practice TDD#1579
KhotKeys wants to merge 5 commits into
CodeYourFuture:mainfrom
KhotKeys:sprint-3-practice-tdd

Conversation

@KhotKeys

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

  • Coursework/practice-tdd completed.

@KhotKeysKhotKeys added 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Structuring-And-Testing-Data The name of the module. labels Jul 27, 2026

@cjyuancjyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Could you also update get-ordinal-number.test.js?

@cjyuancjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 28, 2026
@KhotKeys

Copy link
Copy Markdown
Author

Looks good.

Could you also update get-ordinal-number.test.js?

Alright, let me check that out.

@KhotKeys

Copy link
Copy Markdown
Author

Hi @cjyuan,

Updated the test file, thanks!

});

// Case 5: All other numbers
test("should append 'th' for all other numbers", () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When a test fails with the message "... all other numbers", it may be unclear what "other numbers" actually refers to.
Could you revise the test description to make it more informative?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, cjyuan, let me revisit

@KhotKeysKhotKeys added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 7, 2026

@cjyuancjyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good.


// Case 4: Numbers ending with 11, 12, or 13 are special and take "th"
test("should append 'th' for numbers ending with 11, 12, or 13", () => {
test("should append 'th' for numbers where (num % 10 === 0, 4-9) or (num % 100 === 11, 12, 13)", () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think stating "last digit is ..." and "last two digits are ..." are clearer.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@cjyuancjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 7, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CompleteVolunteer to add when work is complete and all review comments have been addressed.Module-Structuring-And-Testing-DataThe name of the module.📅 Sprint 3Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@KhotKeys@cjyuan