mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
Revert "update tests, multiple exercises"
This reverts commit 2eb02ea212.
This commit is contained in:
+17
-16
@@ -1,25 +1,26 @@
|
||||
const caesar = require("./caesar");
|
||||
const expect = require('expect');
|
||||
const caesar = require('./caesar')
|
||||
|
||||
describe("caesar", function () {
|
||||
it("works with single letters", function () {
|
||||
expect(caesar("A", 1)).toEqual("B");
|
||||
describe('caesar', function() {
|
||||
test('works with single letters', function() {
|
||||
expect(caesar('A', 1)).toBe('B');
|
||||
});
|
||||
xit("works with words", function () {
|
||||
expect(caesar("Aaa", 1)).toEqual("Bbb");
|
||||
test.skip('works with words', function() {
|
||||
expect(caesar('Aaa', 1)).toBe('Bbb');
|
||||
});
|
||||
xit("works with phrases", function () {
|
||||
expect(caesar("Hello, World!", 5)).toEqual("Mjqqt, Btwqi!");
|
||||
test.skip('works with phrases', function() {
|
||||
expect(caesar('Hello, World!', 5)).toBe('Mjqqt, Btwqi!');
|
||||
});
|
||||
xit("works with negative shift", function () {
|
||||
expect(caesar("Mjqqt, Btwqi!", -5)).toEqual("Hello, World!");
|
||||
test.skip('works with negative shift', function() {
|
||||
expect(caesar('Mjqqt, Btwqi!', -5)).toBe('Hello, World!');
|
||||
});
|
||||
xit("wraps", function () {
|
||||
expect(caesar("Z", 1)).toEqual("A");
|
||||
test.skip('wraps', function() {
|
||||
expect(caesar('Z', 1)).toBe('A');
|
||||
});
|
||||
xit("works with large shift factors", function () {
|
||||
expect(caesar("Hello, World!", 75)).toEqual("Ebiil, Tloia!");
|
||||
test.skip('works with large shift factors', function() {
|
||||
expect(caesar('Hello, World!', 75)).toBe('Ebiil, Tloia!');
|
||||
});
|
||||
xit("works with large negative shift factors", function () {
|
||||
expect(caesar("Hello, World!", -29)).toEqual("Ebiil, Tloia!");
|
||||
test.skip('works with large negative shift factors', function() {
|
||||
expect(caesar('Hello, World!', -29)).toBe('Ebiil, Tloia!');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user