mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
remove timer and simon
This commit is contained in:
+14
-14
@@ -1,22 +1,22 @@
|
||||
var caesar = require('./caesar')
|
||||
const caesar = require("./caesar");
|
||||
|
||||
describe('caesar', function() {
|
||||
it('works with single letters', function() {
|
||||
expect(caesar('A', 1)).toEqual('B');
|
||||
describe("caesar", () => {
|
||||
it("works with single letters", () => {
|
||||
expect(caesar("A", 1)).toEqual("B");
|
||||
});
|
||||
xit('works with words', function() {
|
||||
expect(caesar('Aaa', 1)).toEqual('Bbb');
|
||||
it("works with words", () => {
|
||||
expect(caesar("Aaa", 1)).toEqual("Bbb");
|
||||
});
|
||||
xit('works with phrases', function() {
|
||||
expect(caesar('Hello, World!', 5)).toEqual('Mjqqt, Btwqi!');
|
||||
it("works with phrases", () => {
|
||||
expect(caesar("Hello, World!", 5)).toEqual("Mjqqt, Btwqi!");
|
||||
});
|
||||
xit('works with negative shift', function() {
|
||||
expect(caesar('Mjqqt, Btwqi!', -5)).toEqual('Hello, World!');
|
||||
it("works with negative shift", () => {
|
||||
expect(caesar("Mjqqt, Btwqi!", -5)).toEqual("Hello, World!");
|
||||
});
|
||||
xit('wraps', function() {
|
||||
expect(caesar('Z', 1)).toEqual('A');
|
||||
it("wraps", () => {
|
||||
expect(caesar("Z", 1)).toEqual("A");
|
||||
});
|
||||
xit('works with large shift factors', function() {
|
||||
expect(caesar('Hello, World!', 75)).toEqual('Ebiil, Tloia!');
|
||||
it("works with large shift factors", () => {
|
||||
expect(caesar("Hello, World!", 75)).toEqual("Ebiil, Tloia!");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user