Skip to content

Commit

Permalink
translate(cipher): Translate shared files to english
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbcerri authored and lupomontero committed Sep 12, 2019
1 parent e452d56 commit c362e5a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion projects/01-cipher/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>
<div id="root">
<h1>Hola mundo!</h1>
<h1>Hello world!</h1>
</div>
<script src="cipher.js"></script>
<script src="index.js"></script>
Expand Down
35 changes: 17 additions & 18 deletions projects/01-cipher/test/cipher.spec.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
describe('cipher', () => {

it('debería ser un objeto', () => {
it('should be an object', () => {
assert.equal(typeof cipher, 'object');
});

describe('cipher.encode', () => {

it('debería ser una función', () => {
it('should be a function', () => {
assert.equal(typeof cipher.encode, 'function');
});

it('debería retornar "HIJKLMNOPQRSTUVWXYZABCDEFG" para "ABCDEFGHIJKLMNOPQRSTUVWXYZ" con offset 33', () => {
it('should return "HIJKLMNOPQRSTUVWXYZABCDEFG" for "ABCDEFGHIJKLMNOPQRSTUVWXYZ" with offset 33', () => {
assert.equal(cipher.encode(33, "ABCDEFGHIJKLMNOPQRSTUVWXYZ"), "HIJKLMNOPQRSTUVWXYZABCDEFG");
});

// Hacker edition
//
// Si decides agregar soporte para minúsculas descomenta el test a
// continuación.
// If you decide to add tests for lowercase, uncomment the test below.
//
// it('debería retornar "hijklmnopqrstuvwxyzabcdefg" para "abcdefghijklmnopqrstuvwxyz" con offset 33', () => {
// it('should return "hijklmnopqrstuvwxyzabcdefg" for "abcdefghijklmnopqrstuvwxyz" with offset 33', () => {
// assert.equal(
// cipher.encode(33, 'abcdefghijklmnopqrstuvwxyz'),
// 'hijklmnopqrstuvwxyzabcdefg'
Expand All @@ -29,30 +28,30 @@ describe('cipher', () => {
//
// Hacker edition
//
// Si decides implementar soporte para caracteres no alfabéticos descomenta
// el test a continuación.
// If you decide to add tests for non-alphabetical characters, uncomment
// the test below.
//
// it('debería retornar " !@" para " !@"', () => {
// it('should return " !@" for " !@"', () => {
// assert.equal(cipher.encode(33, ' !@'),' !@');
// });
});

describe('cipher.decode', () => {

it('debería ser una función', () => {
it('should be a function', () => {
assert.equal(typeof cipher.decode, 'function');
});

it('debería retornar "ABCDEFGHIJKLMNOPQRSTUVWXYZ" para "HIJKLMNOPQRSTUVWXYZABCDEFG" con offset 33', () => {
it('should return "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for "HIJKLMNOPQRSTUVWXYZABCDEFG" with offset 33', () => {
assert.equal(cipher.decode(33, "HIJKLMNOPQRSTUVWXYZABCDEFG"), "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
});

//
// Hacker edition
//
// Si decides agregar soporte para minúsculas descomenta el test a
// continuación.
// If you decide to add tests for lowercase, uncomment the test below.
//
// it('debería retornar "abcdefghijklmnopqrstuvwxyz" para "hijklmnopqrstuvwxyzabcdefg" con offset 33', () => {
// it('should return "abcdefghijklmnopqrstuvwxyz" for "hijklmnopqrstuvwxyzabcdefg" with offset 33', () => {
// assert.equal(
// cipher.decode(33, 'hijklmnopqrstuvwxyzabcdefg'),
// 'abcdefghijklmnopqrstuvwxyz'
Expand All @@ -62,10 +61,10 @@ describe('cipher', () => {
//
// Hacker edition
//
// Si decides implementar soporte para caracteres no alfabéticos descomenta
// el test a continuación.
// If you decide to add tests for non-alphabetical characters, uncomment
// the test below.
//
// it('debería retornar " !@" para " !@"', () => {
// it('should return " !@" para " !@"', () => {
// assert.equal(cipher.decode(33, ' !@'),' !@');
// });
});
Expand Down

0 comments on commit c362e5a

Please sign in to comment.