Skip to content

London | May-2025 | Fatima_Zohra_Belkedari | Module Structuring and Testing Data | Sprint. 3 #629

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

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
696bb42
updating angle type.js
Farah-Stu Jun 27, 2025
4cc5106
fixing the proper fraciton.js
Farah-Stu Jun 27, 2025
22cab74
updating card value
Farah-Stu Jun 28, 2025
ed21e9d
update card value
Farah-Stu Jun 28, 2025
4d9bc3b
update angle type.test
Farah-Stu Jun 28, 2025
8f7c8a6
adding assertEqual line
Farah-Stu Jun 28, 2025
27e36c5
updating proper fraction file
Farah-Stu Jun 29, 2025
a97c923
updating the file
Farah-Stu Jun 29, 2025
cc9d7dc
updating the proper fraction test file
Farah-Stu Jun 29, 2025
bfee299
updating card file
Farah-Stu Jun 29, 2025
8f9221a
updating card test file
Farah-Stu Jun 29, 2025
d6a385f
update count file
Farah-Stu Jun 30, 2025
0c51d93
update count.test.js
Farah-Stu Jun 30, 2025
9c6607c
updating ordinal num file
Farah-Stu Jun 30, 2025
da6f74f
update ordinal num file test
Farah-Stu Jun 30, 2025
b15ce67
update repeat file
Farah-Stu Jun 30, 2025
401a0d1
update repeat test file
Farah-Stu Jun 30, 2025
d25287f
updating and returnig a valid message to the function
Farah-Stu Jul 11, 2025
ea3514b
returning a valid message to the code
Farah-Stu Jul 11, 2025
22db2cc
matching the description in the test file
Farah-Stu Jul 11, 2025
77294d9
updating
Farah-Stu Jul 11, 2025
6c4aa13
updating and testing numbers
Farah-Stu Jul 11, 2025
b0c9c31
updating file.js
Farah-Stu Jul 11, 2025
3000184
updadting the test file
Farah-Stu Jul 11, 2025
96eb260
updating the code
Farah-Stu Jul 12, 2025
19e006e
updating the card value code
Farah-Stu Jul 12, 2025
037bc34
updating the code with invalid card rank
Farah-Stu Jul 12, 2025
535e4ba
updating the file
Farah-Stu Jul 12, 2025
96888f8
updating the. file
Farah-Stu Jul 13, 2025
eece386
updating the file
Farah-Stu Jul 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Contributor

Choose a reason for hiding this comment

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

Indentation is off.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ if(strNum.slice(-1)==="3") {
return strNum + "rd";
}

return strNum + "th";
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ const getOrdinalNumber = require("./get-ordinal-number");
expect(getOrdinalNumber(12)).toEqual("12th");
expect(getOrdinalNumber(13)).toEqual("13th");
});
test("should append 'th' to numbers ending in 0, 4, 9", () => {
expect(getOrdinalNumber(124)).toEqual( "124th" );
expect(getOrdinalNumber(10)).toEqual( "10th" );
expect(getOrdinalNumber(99)).toEqual( "99th" );
});