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

Version Path
trackler-2.2.1.180 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.179 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.178 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.177 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.176 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.175 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.174 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.173 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.172 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.171 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.170 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.169 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.167 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.166 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.165 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.164 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.163 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.162 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.161 tracks/typescript/exercises/diamond/diamond.test.ts
trackler-2.2.1.160 tracks/typescript/exercises/diamond/diamond.test.ts