Sha256: 41b3f0786fa0237bcc7fe3e3b0aaa0d6b64707f0b35ac9c0747ff648e448519a
Contents?: true
Size: 614 Bytes
Versions: 117
Compression:
Stored size: 614 Bytes
Contents
import Diamond from './diamond' /* tslint:disable no-trailing-whitespace*/ describe('Make diamond function', () => { const diamond = new Diamond() test('test letter A', () => { const result = 'A\n' expect(diamond.makeDiamond('A')).toEqual(result) }) test('test letter C', () => { const result = ` A B B C C B B A ` expect(diamond.makeDiamond('C')).toEqual(result) }) test('test letter E', () => { const result = ` A B B C C D D E E D D C C B B A ` expect(diamond.makeDiamond('E')).toEqual(result) }) })
Version data entries
117 entries across 117 versions & 1 rubygems