debut TP2

This commit is contained in:
2024-04-18 09:43:42 +02:00
parent a17920df41
commit e092272bd4
31 changed files with 696 additions and 37 deletions

View File

@ -0,0 +1,19 @@
import { convertToLowercase } from "./index";
describe("convertToLowercase", () => {
it.each([
{ input: "ToTO", expected: "toto" },
{ input: "ToTo", expected: "toto" },
{ input: "TOTo", expected: "toto" },
])(
"should return the input in lowercase when all letters are uppercases",
({ input, expected }) => {
// Arrange
// Act
const result = convertToLowercase(input);
// Assert
expect(result).toStrictEqual(expected);
}
);
});