We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af53ee3 commit d9cb644Copy full SHA for d9cb644
workspaces/adventure-pack/goodies/typescript/String.prototype.caesar/index.test.ts
@@ -28,6 +28,14 @@ describe("String.prototype.caesar", () => {
28
expect("Civis Romanus sum.".caesar()).toBe("Djwjt Spnbovt tvn.");
29
});
30
31
+ it("handles empty string", () => {
32
+ expect("".caesar()).toBe("");
33
+ expect("".caesar(13)).toBe("");
34
+ expect("".caesar(-27)).toBe("");
35
+ expect("".caesar(-2)).toBe("");
36
+ expect("".caesar(42)).toBe("");
37
+ });
38
+
39
// TODO: test ROT-13
40
41
// TODO: test Unicode characters
0 commit comments