mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
Update files
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
const caesar = require('./caesar-solution');
|
||||
const caesar = require("./caesar");
|
||||
|
||||
test('works with single letters', () => {
|
||||
expect(caesar('A', 1)).toBe('B');
|
||||
test("works with single letters", () => {
|
||||
expect(caesar("A", 1)).toBe("B");
|
||||
});
|
||||
test.skip('works with words', () => {
|
||||
expect(caesar('Aaa', 1)).toBe('Bbb');
|
||||
test.skip("works with words", () => {
|
||||
expect(caesar("Aaa", 1)).toBe("Bbb");
|
||||
});
|
||||
test.skip('works with phrases', () => {
|
||||
expect(caesar('Hello, World!', 5)).toBe('Mjqqt, Btwqi!');
|
||||
test.skip("works with phrases", () => {
|
||||
expect(caesar("Hello, World!", 5)).toBe("Mjqqt, Btwqi!");
|
||||
});
|
||||
test.skip('works with negative shift', () => {
|
||||
expect(caesar('Mjqqt, Btwqi!', -5)).toBe('Hello, World!');
|
||||
test.skip("works with negative shift", () => {
|
||||
expect(caesar("Mjqqt, Btwqi!", -5)).toBe("Hello, World!");
|
||||
});
|
||||
test.skip('wraps', () => {
|
||||
expect(caesar('Z', 1)).toBe('A');
|
||||
test.skip("wraps", () => {
|
||||
expect(caesar("Z", 1)).toBe("A");
|
||||
});
|
||||
test.skip('works with large shift factors', () => {
|
||||
expect(caesar('Hello, World!', 75)).toBe('Ebiil, Tloia!');
|
||||
test.skip("works with large shift factors", () => {
|
||||
expect(caesar("Hello, World!", 75)).toBe("Ebiil, Tloia!");
|
||||
});
|
||||
test.skip('works with large negative shift factors', () => {
|
||||
expect(caesar('Hello, World!', -29)).toBe('Ebiil, Tloia!');
|
||||
test.skip("works with large negative shift factors", () => {
|
||||
expect(caesar("Hello, World!", -29)).toBe("Ebiil, Tloia!");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user